import { TagSelectNew as TagSelect } from '@/components/TagSelectNew';
// import { UploadFormCommon } from '../common/UploadForm';
import { SearchOutlined, VerticalAlignBottomOutlined } from '@ant-design/icons';
import { AutoComplete, DatePicker, Form, Input, Tooltip, message } from 'antd';
import { calculate } from '../common/Format';
import { BJCS, BJKJ, BJXJ, DYLY, GKZB, JZXCS, JZXTP, KJXYCG, XJCG, YQZB } from '../../Acommon/PurchaseState';
import { downloadTemplate, getFileNameByPath, getFileNameNotType, getLoadMapList, getSelectDataCommon, getTenantID, splitFileUrl } from '@/utils';
import { ILoadMapTypeAll } from '@/common';
import MyIcon from '@/components/MyIcon';
import moment from 'moment';
// import { UploadFormCommon } from '../common/UploadForm';
import { RegularExpression } from '@/common/constVariable';
import { UploadFormCommon } from '../../Acomponents/UploadForm';
import { ColumnsRenderFun, renderFileFunc } from '../../Acommon';

/** 一，二、公开招标&&邀请招标 */
export const publicityInvite_Invita = ({ change, state, tableType, cardType, formRef, infoState }: Record<string, any>): any[] => {
  /** 评标方法 */
  const PBFF = [
    {
      value: `${getTenantID()}${ILoadMapTypeAll?.EVALSTYLE_TYPE}1002`,
      name: '综合评分法',
    },
    {
      value: `${getTenantID()}${ILoadMapTypeAll?.EVALSTYLE_TYPE}1003`,
      name: '最低评标价法',
    },
  ];

  /** 第一阶段入围供应商评审方法 */
  const DYJD = [
    {
      value: `${getTenantID()}${ILoadMapTypeAll?.EVALSTYLE_TYPE}1000`,
      name: '质量优先法',
    },
    {
      value: `${getTenantID()}${ILoadMapTypeAll?.EVALSTYLE_TYPE}1001`,
      name: '价格优先法',
    },
  ];

  /** 项目属性list */
  const supplyTypeList = [
    {
      value: '1',
      name: '货物类',
    },
    {
      value: '0',
      name: '服务类',
    },
  ];

  /** 字典集合 */
  const loadMdicIds: string[] = [`${getTenantID()}${ILoadMapTypeAll.INDUSTRY_INVOLVED}`];

  const { loadMapInfo } = getLoadMapList(loadMdicIds);

  const industry_involveds = getSelectDataCommon(loadMapInfo?.[`${getTenantID()}${ILoadMapTypeAll.INDUSTRY_INVOLVED}`], 'name', 'id');

  const { changeRadio, setIsShow, handleDelFileFn, handleAddFileFn } = change;

  const { radioState } = state;

  let disabled = false;

  if (cardType == 'view') disabled = true;
  if (cardType == 'edit') disabled = false;

  if (tableType == GKZB()) {
    return [
      {
        label: '一、基本信息',
        field: 'baseInfoTitle',
        component: 'Title',
      },
      {
        label: '标包名称',
        field: 'packName',
        component: 'Input',
        disabled: true,
      },
      {
        label: '包号',
        field: 'packCode',
        component: 'Input',
        disabled: true,
      },
      {
        label: '所属行业',
        field: 'industryKind',
        component: 'Select',
        fieldNames: { label: 'name', value: 'value' },
        options: industry_involveds,
        required: true,
        disabled,
      },
      {
        label: '项目属性',
        field: 'supplyType',
        component: 'Render',
        slotRender: (text) => {
          let name = '';
          if (text == `${getTenantID()}${ILoadMapTypeAll?.PURCHASE_CATEGORY}1000`) {
            text = '1';
            name = '货物类';
          } else {
            text = '0';
            name = '服务类';
          }
          return (
            <>
              {disabled ? (
                <span style={{ paddingLeft: 8 }}>{name}</span>
              ) : (
                <TagSelect colSpan={24} formLabel={''} formName={'supplyType'} defalultKeys={text} radioList={supplyTypeList} radioDisabled={true} />
              )}
            </>
          );
        },
      },
      {
        label: '预算金额',
        field: 'expectSum',
        component: 'InputNumber',
        formatter: (value: number) => {
          if (value) {
            return Number(value).toFixed(2);
          }
        },
        contentAfter: '元',
        disabled: true,
      },
      {
        label: '最高限价',
        field: 'expectCeilSum',
        component: 'InputNumber',
        formatter: (value: number) => {
          if (value) {
            return Number(value).toFixed(2);
          }
        },
        min: 1,
        contentAfter: '元',
        disabled,
        required: true,
      },
      {
        label: '拟采用采购方式',
        field: 'procureReal',
        component: 'Input',
        disabled: true,
      },
      {
        label: '投标有效期',
        field: disabled ? 'Render' : 'bidPeriodDay',
        placeholder: '请选择投标有效期',
        component: 'Render',
        required: true,
        slotRender: (text) => {
          return (
            <>
              <div className="criteria-btnStyle">
                <div style={{ flex: 'auto', alignItems: 'center' }}>
                  {disabled ? (
                    <div
                      className={'formItem-bidPeriodDay'}
                      style={{ paddingLeft: 8, display: 'flex', alignItems: 'center', overflow: 'hidden', height: '100%' }}
                    >
                      <span>{infoState?.bidPeriodDay || '--'}</span>
                    </div>
                  ) : (
                    <Form.Item
                      name={'bidPeriodDay'}
                      className={'formItem-bidPeriodDay'}
                      rules={[
                        {
                          required: true,
                          message: '请选择投标有效期',
                        },
                        {
                          pattern: RegularExpression.integerNumber,
                          message: '输入的投标有效期必须是正整数',
                        },
                      ]}
                    >
                      <AutoComplete
                        value={text}
                        disabled={disabled}
                        placeholder="请选择/输入投标有效期"
                        defaultValue={'60'}
                        options={[
                          {
                            label: '60',
                            value: '60',
                          },
                          {
                            label: '90',
                            value: '90',
                          },
                          {
                            label: '120',
                            value: '120',
                          },
                        ]}
                      />
                    </Form.Item>
                  )}
                </div>
                <div className="criteria-btnStyle-bottomIcon">日</div>
              </div>
            </>
          );
          // }
        },
      },
      {
        label: '是否科研仪器设备',
        field: 'sciequipFlag',
        component: 'Render',
        colSpan: radioState?.supplyType == 0 ? 1 : 0,
        required: true,
        slotRender: (text: string = '0') => {
          let name = '';
          if (text == '1') {
            name = '是';
          } else {
            name = '否';
          }

          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>{name}</span>;
          } else {
            return (
              <TagSelect
                colSpan={24}
                formLabel={''}
                formName={'sciequipFlag'}
                defalultKeys={Number(text)}
                radioList={[
                  {
                    value: 1,
                    name: '是',
                  },
                  {
                    value: 0,
                    name: '否',
                  },
                ]}
                radioDisabled={disabled}
              />
            );
          }
        },
      },
      {
        label: '是否接受进口',
        field: 'importFlag',
        component: 'Render',
        colSpan: radioState?.supplyType == 0 ? 1 : 0,
        required: true,
        slotRender: (text: string = '0', record: Record<string, any>) => {
          let name = '';
          if (text == '1') {
            name = '是';
          } else {
            name = '否';
          }

          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>{name}</span>;
          } else {
            return (
              <TagSelect
                colSpan={24}
                formLabel={''}
                formName={'importFlag'}
                defalultKeys={Number(text)}
                radioList={[
                  {
                    value: 1,
                    name: '是',
                  },
                  {
                    value: 0,
                    name: '否',
                  },
                ]}
                radioDisabled={disabled}
              />
            );
          }
        },
      },
      {
        label: '是否单一产品采购项目',
        field: 'productFlag',
        component: 'Render',
        required: true,
        colSpan: radioState?.supplyType == 0 ? (radioState.productFlag == 0 || radioState.productFlag == null ? 2 : 1) : 0,
        slotRender: (text: any = 0) => {
          let name = '';
          if (text == '1') {
            name = '是';
          } else {
            name = '否';
          }
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>{name}</span>;
          } else {
            return (
              <TagSelect
                colSpan={24}
                formLabel={''}
                formName={'productFlag'}
                onChange={(value) => {
                  changeRadio(value, 'productFlag');
                }}
                defalultKeys={Number(text)}
                radioList={[
                  {
                    value: 1,
                    name: '是',
                  },
                  {
                    value: 0,
                    name: '否',
                  },
                ]}
                radioDisabled={disabled}
              />
            );
          }
        },
      },
      {
        label: '核心产品',
        field: 'productName',
        component: 'Input',
        disabled,
        required: true,
        colSpan: radioState?.supplyType == 0 ? (radioState.productFlag == 0 || radioState.productFlag == null ? 0 : 1) : 0,
      },
      {
        label: '二、分包要求',
        field: 'packTitle',
        component: 'Title',
      },
      {
        label: '分包',
        field: 'packFlag',
        component: 'Render',
        colSpan: 2,
        slotRender: (text: string = '0') => {
          let name = '';
          if (text == '1') {
            name = '允许';
          } else {
            name = '不允许';
          }

          return (
            <>
              {disabled ? (
                <span style={{ paddingLeft: 8 }}>{name}</span>
              ) : (
                <TagSelect
                  colSpan={24}
                  formLabel={''}
                  formName={'packFlag'}
                  onChange={(value) => {
                    changeRadio(value, 'packFlag');
                  }}
                  radioDisabled={disabled}
                  defalultKeys={Number(text)}
                  radioList={[
                    {
                      value: 1,
                      name: '允许',
                    },
                    {
                      value: 0,
                      name: '不允许',
                    },
                  ]}
                />
              )}
            </>
          );
        },
      },
      {
        label: '允许分包的比例',
        field: 'packScale',
        component: 'InputNumber',
        type: 'number',
        min: 0,
        max: 100,
        step: '0.01',
        colSpan: radioState.packFlag == 0 ? 0 : 1,
        contentAfter: '%',
        disabled,
        required: true,
      },
      {
        label: '允许分包的金额',
        field: 'packScale1',
        component: 'Render',
        placeholder: '根据分包比例自动算出',
        disabled: true,
        colSpan: radioState.packFlag == 0 ? 0 : 1,
        contentAfter: '元',
        slotRender: (text, record) => {
          return <div style={{ marginLeft: '8px' }}>{calculate(Number(record?.expectSum), Number(record?.packScale))}</div>;
        },
        required: true,
      },
      {
        label: '可以分包履行的具体内容',
        field: 'packContent',
        component: disabled ? 'Render' : 'InputTextArea',
        slotRender: (text) => {
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>暂无</span>;
          }
        },
        maxLength: 200,
        allowClear: true,
        autoSize: { minRows: 3, maxRows: 4 },
        showCount: true,
        colSpan: radioState.packFlag == 0 ? 0 : 2,
        disabled,
        required: true,
      },
      {
        label: '分包其他要求',
        field: 'packOther',
        colSpan: radioState.packFlag == 0 ? 0 : 2,
        component: disabled ? 'Render' : 'InputTextArea',
        slotRender: (text) => {
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>暂无</span>;
          }
        },
        maxLength: 200,
        allowClear: true,
        autoSize: { minRows: 3, maxRows: 4 },
        showCount: true,
        disabled,
        required: true,
      },
      {
        label: '三、投标人/供应商要求',
        field: 'requirementsTitle',
        component: 'Title',
      },
      {
        label: '是否接受联合体',
        field: 'complexFlag',
        component: 'Render',
        colSpan: 2,
        required: true,
        slotRender: (text: string = '0') => {
          let name = '';
          if (text == '1') {
            name = '是';
          } else {
            name = '否';
          }
          return (
            <>
              {disabled ? (
                <span style={{ paddingLeft: 8 }}>{name}</span>
              ) : (
                <TagSelect
                  colSpan={24}
                  formLabel={''}
                  formName={'complexFlag'}
                  defalultKeys={Number(text)}
                  radioList={[
                    {
                      value: 1,
                      name: '是',
                    },
                    {
                      value: 0,
                      name: '否',
                    },
                  ]}
                  radioDisabled={disabled}
                />
              )}
            </>
          );
        },
      },
      {
        label: '投标人特定资格要求',
        field: 'sourceContent',
        component: disabled ? 'Render' : 'InputTextArea',
        slotRender: (text) => {
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>暂无</span>;
          }
        },
        maxLength: 200,
        allowClear: true,
        autoSize: { minRows: 3, maxRows: 4 },
        showCount: true,
        colSpan: 2,
        disabled,
        required: true,
      },
      {
        label: '四、评标方法及标准',
        field: 'evaluationTitle',
        component: 'Title',
      },
      {
        label: '评标方法',
        field: 'evalStyle',
        component: 'Render',
        colSpan: radioState?.evalStyle == `${getTenantID()}${ILoadMapTypeAll?.EVALSTYLE_TYPE}1003` ? 2 : 1,
        slotRender: (text: string = `${getTenantID()}${ILoadMapTypeAll?.EVALSTYLE_TYPE}1002`) => {
          let name = '--';
          if (text == `${getTenantID()}${ILoadMapTypeAll?.EVALSTYLE_TYPE}1002`) {
            name = '综合评分法';
          } else if (text == `${getTenantID()}${ILoadMapTypeAll?.EVALSTYLE_TYPE}1003`) {
            name = '最低评标价法';
          }
          return (
            <>
              {disabled ? (
                <span style={{ paddingLeft: 8 }}>{name}</span>
              ) : (
                <TagSelect
                  colSpan={24}
                  formLabel={''}
                  formName={'evalStyle'}
                  onChange={(value) => {
                    changeRadio(value, 'evalStyle');
                  }}
                  defalultKeys={text}
                  radioList={PBFF}
                  radioDisabled={disabled}
                />
              )}
            </>
          );
        },
      },
      {
        label: '评分标准',
        field: 'evalFileURL',
        placeholder: '请选择评标方法',
        component: 'Render',
        colSpan: radioState.evalStyle == `${getTenantID()}${ILoadMapTypeAll?.EVALSTYLE_TYPE}1003` ? 0 : 1,
        slotRender: (text) => {
          let fileName = 'evalFileURL';
          return (
            <div className="criteria-btnStyle">
              <div style={{ flex: 'auto', alignItems: 'center' }}>
                {!disabled ? (
                  <UploadFormCommon
                    form={formRef}
                    fileFormName={fileName}
                    spanCol={24}
                    inRowProportion={24}
                    name={'attachFile'}
                    required={false}
                    accept={'.doc|.docx'}
                    url={'/purchaseSourceController/uploadFile'}
                    downloadUrl={'/purchaseSourceController/downloadFile'}
                    fileFormDelName={'delFile'}
                    delFunc={(delFilePath: string) => {
                      handleDelFileFn(delFilePath, fileName);
                    }}
                    uploadSuccessCallback={(attachPaths) => {
                      handleAddFileFn(attachPaths, fileName);
                    }}
                    defaultFiles={text}
                    maxFile={1}
                    hintTitle={'且只能上传 1 个！'}
                    fieldBusiPath={'purchase/source'}
                    isShowUploadBtn={true}
                  >
                    上传
                  </UploadFormCommon>
                ) : (
                  <div
                    style={{
                      height: '100%',
                      display: 'flex',
                      alignItems: 'center',
                      marginLeft: '8px',
                    }}
                  >
                    {radioState?.[fileName]
                      ? splitFileUrl(radioState?.[fileName])?.map((e) => {
                          return (
                            <Tooltip title={e.attachName} key={new Date().getTime() * 25615265152 + e?.attachName}>
                              <a
                                onClick={() => {
                                  message.success('下载中，请稍后...');
                                  downloadTemplate('/purchaseSourceController/downloadFile', e?.attachName, e?.attachUrl, () => {});
                                }}
                              >
                                <MyIcon type="icon-file-text-fill" />
                                &nbsp;
                                {getFileNameNotType(e.attachName, 8)}
                              </a>
                            </Tooltip>
                          );
                        })
                      : '--'}
                  </div>
                )}
              </div>
              <div className="criteria-btnStyle-bottomIcon">
                <a onClick={() => {}}>
                  <Tooltip title={`下载模板`}>
                    <VerticalAlignBottomOutlined />
                  </Tooltip>
                </a>
              </div>
            </div>
          );
        },
      },
      {
        label: '五、采购需求及合同范本',
        field: 'requirements',
        component: 'Title',
      },
      {
        label: '统一合同范本',
        field: 'templateFlag',
        component: 'Render',
        colSpan: 2,
        slotRender: (text: string = '0') => {
          let name = '';
          if (text == '1') {
            name = '是';
          } else {
            name = '否';
          }
          return (
            <>
              {disabled ? (
                <span style={{ paddingLeft: 8 }}>{name}</span>
              ) : (
                <TagSelect
                  colSpan={24}
                  formLabel={''}
                  formName={'templateFlag'}
                  defalultKeys={Number(text)}
                  onChange={(value) => {
                    changeRadio(value, 'templateFlag');
                  }}
                  radioList={[
                    {
                      value: 1,
                      name: '是',
                    },
                    {
                      value: 0,
                      name: '否',
                    },
                  ]}
                  radioDisabled={disabled}
                />
              )}
            </>
          );
        },
      },
      {
        label: '合同范本',
        field: 'contract',
        component: 'Render',
        placeholder: '请选择合同范本',
        message: '请选择合同范本',
        disabled: true,
        required: true,
        colSpan: Number(radioState.templateFlag) == 1 ? 2 : 0,
        contentAfter: (
          <a
            onClick={() => {
              setIsShow(true);
            }}
          >
            <SearchOutlined />
          </a>
        ),
        slotRender: (text: string | null, record: Record<string, any>) => {
          return renderFileFunc({ record, fileName: 'contract', downloadAddress: '/contractTemplateController/downloadFile' });

          // const fileName: string = getFileNameByPath(text);
          // return (
          //     <>
          //         {text ? (
          //             <Tooltip title={fileName}>
          //                 <a>
          //                     <MyIcon type="icon-file-text-fill" />
          //                     &nbsp;
          //                     {fileName}
          //                 </a>
          //             </Tooltip>
          //         ) : (
          //             <>--</>
          //         )}
          //     </>
          // );

          //         return (
          //   <Tooltip title={text ? tooltipLength(text, 50) : ''}>
          //     <span className={pageStyles['over-flow-hidden']}>{text ? text : '--'}</span>
          //   </Tooltip>
          // );
        },
      },
      {
        label: '合同文本',
        field: 'contractURL',
        component: 'Render',
        required: true,
        colSpan: Number(radioState.templateFlag) == 0 ? 2 : radioState?.templateFlag == undefined ? 2 : 0,
        slotRender: (text) => {
          const fileName = 'contractURL';
          return (
            <div className="criteria-btnStyle">
              <div style={{ flex: 'auto', alignItems: 'center' }}>
                {!disabled ? (
                  <UploadFormCommon
                    form={formRef}
                    fileFormName={fileName}
                    spanCol={24}
                    inRowProportion={24}
                    name={'attachFile'}
                    required={true}
                    accept={'.doc|.docx'}
                    url={'/purchaseSourceController/uploadFile'}
                    downloadUrl={'/purchaseSourceController/downloadFile'}
                    fileFormDelName={'delFile'}
                    maxFile={1}
                    delFunc={(delFilePath: string) => {
                      handleDelFileFn(delFilePath, fileName);
                    }}
                    uploadSuccessCallback={(attachPaths) => {
                      handleAddFileFn(attachPaths, fileName);
                    }}
                    defaultFiles={text}
                    hintTitle={'且只能上传 1 个！'}
                    fieldBusiPath={'purchase/source'}
                    isShowUploadBtn={true}
                  >
                    上传
                  </UploadFormCommon>
                ) : (
                  <div
                    style={{
                      height: '100%',
                      display: 'flex',
                      alignItems: 'center',
                      marginLeft: '8px',
                    }}
                  >
                    {radioState?.[fileName]
                      ? splitFileUrl(radioState?.[fileName])?.map((e) => {
                          return (
                            <Tooltip title={e.attachName} key={new Date().getTime() * 25615265152 + e?.attachName}>
                              <a
                                onClick={() => {
                                  message.success('下载中，请稍后...');
                                  downloadTemplate('/purchaseSourceController/downloadFile', e?.attachName, e?.attachUrl, () => {});
                                }}
                              >
                                <MyIcon type="icon-file-text-fill" />
                                &nbsp;
                                {getFileNameNotType(e.attachName, 8)}
                              </a>
                            </Tooltip>
                          );
                        })
                      : '--'}
                  </div>
                )}
              </div>
              <div className="criteria-btnStyle-bottomIcon">
                <a onClick={() => {}}>
                  <Tooltip title={`下载模板`}>
                    <VerticalAlignBottomOutlined />
                  </Tooltip>
                </a>
              </div>
            </div>
          );
        },
      },
      {
        label: '采购需求',
        field: 'needFileURL',
        component: 'Render',
        colSpan: 2,
        slotRender: (text) => {
          const fileName = 'needFileURL';
          return (
            <>
              {!disabled ? (
                <UploadFormCommon
                  form={formRef}
                  fileFormName={fileName}
                  spanCol={24}
                  inRowProportion={24}
                  name={'attachFile'}
                  required={false}
                  accept={'.doc|.docx'}
                  url={'/purchaseSourceController/uploadFile'}
                  downloadUrl={'/purchaseSourceController/downloadFile'}
                  fileFormDelName={'delFile'}
                  maxFile={1}
                  delFunc={(delFilePath: string) => {
                    handleDelFileFn(delFilePath, fileName);
                  }}
                  uploadSuccessCallback={(attachPaths) => {
                    handleAddFileFn(attachPaths, fileName);
                  }}
                  defaultFiles={text}
                  hintTitle={'且只能上传 1 个！'}
                  fieldBusiPath={'purchase/source'}
                  isShowUploadBtn={true}
                >
                  上传
                </UploadFormCommon>
              ) : (
                <div
                  style={{
                    height: '100%',
                    display: 'flex',
                    alignItems: 'center',
                    marginLeft: '8px',
                  }}
                >
                  {radioState?.[fileName]
                    ? splitFileUrl(radioState?.[fileName])?.map((e) => {
                        return (
                          <Tooltip title={e.attachName} key={new Date().getTime() * 25615265152 + e?.attachName}>
                            <a
                              onClick={() => {
                                message.success('下载中，请稍后...');
                                downloadTemplate('/purchaseSourceController/downloadFile', e?.attachName, e?.attachUrl, () => {});
                              }}
                            >
                              <MyIcon type="icon-file-text-fill" />
                              &nbsp;
                              {getFileNameNotType(e.attachName, 8)}
                            </a>
                          </Tooltip>
                        );
                      })
                    : '--'}
                </div>
              )}
            </>
          );
        },
      },
      {
        label: '六、其他要求',
        field: 'otherInfo',
        component: 'Title',
      },
      {
        label: '是否现场考察',
        field: 'siteVisitFlag',
        component: 'Render',
        colSpan: radioState.siteVisitFlag == 0 ? 2 : 1,
        slotRender: (text: string = '0') => {
          let name = '';
          if (text == '1') {
            name = '组织';
          } else {
            name = '不组织';
          }
          return (
            <>
              {disabled ? (
                <span style={{ paddingLeft: 8 }}>{name}</span>
              ) : (
                <TagSelect
                  colSpan={24}
                  formLabel={''}
                  formName={'siteVisitFlag'}
                  onChange={(value) => {
                    changeRadio(value, 'siteVisitFlag');
                  }}
                  defalultKeys={Number(text)}
                  radioDisabled={disabled}
                  radioList={[
                    {
                      value: 1,
                      name: '组织',
                    },
                    {
                      value: 0,
                      name: '不组织',
                    },
                  ]}
                />
              )}
            </>
          );
        },
      },
      {
        label: '考察时间',
        field: 'siteVisitTime',
        placeholder: '请选择考察时间',
        component: 'Render',
        required: true,
        colSpan: radioState.siteVisitFlag == 0 ? 0 : 1,
        slotRender: (text) => {
          if (disabled) {
            return <div style={{ marginLeft: '8px' }}>{text ? moment(text)?.format('YYYY-MM-DD') : '--'}</div>;
          } else {
            return (
              <>
                <Form.Item
                  name={'siteVisitTime'}
                  rules={[
                    {
                      required: true,
                      message: '请选择考察时间',
                    },
                  ]}
                >
                  <DatePicker />
                </Form.Item>
              </>
            );
          }
        },
      },
      {
        label: '考察地点',
        field: 'siteVisitAddress',
        maxLength: 200,
        component: disabled ? 'Render' : 'InputTextArea',
        slotRender: (text) => {
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>暂无</span>;
          }
        },
        allowClear: true,
        autoSize: { minRows: 3, maxRows: 4 },
        showCount: true,
        required: true,
        colSpan: radioState.siteVisitFlag == 0 ? 0 : 2,
        disabled,
      },
      {
        label: '开标前答疑会',
        field: 'meetFlag',
        component: 'Render',
        colSpan: radioState.meetFlag == 0 ? 2 : 1,
        slotRender: (text: string = '0') => {
          let name = '';
          if (text == '1') {
            name = '召开';
          } else {
            name = '不召开';
          }

          return (
            <>
              {disabled ? (
                <span style={{ paddingLeft: 8 }}>{name}</span>
              ) : (
                <TagSelect
                  colSpan={24}
                  formLabel={''}
                  formName={'meetFlag'}
                  onChange={(value) => {
                    changeRadio(value, 'meetFlag');
                  }}
                  radioDisabled={disabled}
                  defalultKeys={Number(text)}
                  radioList={[
                    {
                      value: 1,
                      name: '召开',
                    },
                    {
                      value: 0,
                      name: '不召开',
                    },
                  ]}
                />
              )}
            </>
          );
        },
      },
      {
        label: '召开时间',
        field: 'meetTime',
        placeholder: '请选择召开时间',
        component: 'Render',
        required: true,
        colSpan: radioState.meetFlag == 0 ? 0 : 1,
        slotRender: (text) => {
          if (disabled) {
            return <div style={{ marginLeft: '8px' }}>{text ? moment(text)?.format('YYYY-MM-DD') : '--'}</div>;
          } else {
            return (
              <>
                <Form.Item name={'meetTime'} rules={[{ required: true, message: '请选择召开时间' }]}>
                  <DatePicker />
                </Form.Item>
              </>
            );
          }
        },
      },
      {
        label: '召开地点',
        field: 'meetAddress',
        maxLength: 200,
        component: disabled ? 'Render' : 'InputTextArea',
        slotRender: (text) => {
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>暂无</span>;
          }
        },
        allowClear: true,
        autoSize: { minRows: 3, maxRows: 4 },
        showCount: true,
        required: true,
        disabled,
        colSpan: radioState.meetFlag == 0 ? 0 : 2,
      },
      {
        label: '是否需要样品',
        field: 'sampleFlag',
        component: 'Render',
        colSpan: radioState.sampleFlag == 0 ? 2 : 1,
        slotRender: (text: string = '0') => {
          let name = '';
          if (text == '1') {
            name = '需要';
          } else {
            name = '不需要';
          }

          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>{name}</span>;
          } else {
            return (
              <TagSelect
                colSpan={24}
                formLabel={''}
                onChange={(value) => {
                  changeRadio(value, 'sampleFlag');
                }}
                formName={'sampleFlag'}
                defalultKeys={Number(text)}
                radioDisabled={disabled}
                radioList={[
                  {
                    value: 1,
                    name: '需要',
                  },
                  {
                    value: 0,
                    name: '不需要',
                  },
                ]}
              />
            );
          }
        },
      },
      {
        label: '相关检测报告',
        field: 'sampleCheck',
        component: 'Render',
        colSpan: radioState.sampleFlag == 0 ? 0 : 1,
        slotRender: (text: string = '0') => {
          let name = '';
          if (text == '1') {
            name = '需要';
          } else {
            name = '不需要';
          }

          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>{name}</span>;
          } else {
            return (
              <TagSelect
                colSpan={24}
                formLabel={''}
                formName={'sampleCheck'}
                onChange={(value) => {
                  changeRadio(value, 'sampleCheck');
                }}
                radioDisabled={disabled}
                defalultKeys={Number(text)}
                radioList={[
                  {
                    value: 1,
                    name: '需要',
                  },
                  {
                    value: 0,
                    name: '不需要',
                  },
                ]}
              />
            );
          }
        },
      },
      {
        label: '样品制作的标准和要求',
        field: 'sampleMake',
        maxLength: 200,
        component: disabled ? 'Render' : 'InputTextArea',
        slotRender: (text) => {
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>暂无</span>;
          }
        },
        allowClear: true,
        autoSize: { minRows: 3, maxRows: 4 },
        showCount: true,
        required: true,
        disabled,
        colSpan: radioState.sampleFlag == 0 ? 0 : 2,
      },
      {
        label: '未中标人样品退还',
        field: 'sampleReturn',
        component: disabled ? 'Render' : 'InputTextArea',
        slotRender: (text) => {
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>暂无</span>;
          }
        },
        allowClear: true,
        maxLength: 200,
        required: true,
        autoSize: { minRows: 3, maxRows: 4 },
        showCount: true,
        disabled,
        colSpan: radioState.sampleFlag == 0 ? 0 : radioState.sampleCheck == 0 ? 0 : 2,
      },
      {
        label: '中标人样品保管、封存及退还',
        field: 'sampleSeal',
        component: disabled ? 'Render' : 'InputTextArea',
        slotRender: (text) => {
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>暂无</span>;
          }
        },
        allowClear: true,
        maxLength: 200,
        autoSize: { minRows: 3, maxRows: 4 },
        showCount: true,
        required: true,
        disabled,
        colSpan: radioState.sampleFlag == 0 ? 0 : radioState.sampleCheck == 0 ? 0 : 2,
      },
      {
        label: '样品递交要求',
        field: 'sampleDeliver',
        component: disabled ? 'Render' : 'InputTextArea',
        slotRender: (text) => {
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>暂无</span>;
          }
        },
        allowClear: true,
        maxLength: 200,
        autoSize: { minRows: 3, maxRows: 4 },
        showCount: true,
        required: true,
        disabled,
        colSpan: radioState.sampleFlag == 0 ? 0 : radioState.sampleCheck == 0 ? 0 : 2,
      },
      {
        label: '样品其他要求',
        field: 'sampleOther',
        component: disabled ? 'Render' : 'InputTextArea',
        slotRender: (text) => {
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>暂无</span>;
          }
        },
        maxLength: 200,
        allowClear: true,
        autoSize: { minRows: 3, maxRows: 4 },
        showCount: true,
        disabled,
        colSpan: radioState.sampleFlag == 0 ? 0 : radioState.sampleCheck == 0 ? 0 : 2,
      },
      {
        label: '履约保证金',
        field: 'bidMarginFlag',
        component: 'Render',
        colSpan: 2,
        slotRender: (text: string = '1') => {
          let name = '';
          if (text == '1') {
            name = '缴纳';
          } else {
            name = '不缴纳';
          }
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>{name}</span>;
          } else {
            return (
              <TagSelect
                colSpan={24}
                formLabel={''}
                formName={'bidMarginFlag'}
                onChange={(value) => {
                  changeRadio(value, 'bidMarginFlag');
                }}
                defalultKeys={Number(text)}
                radioDisabled={disabled}
                radioList={[
                  {
                    value: 1,
                    name: '缴纳',
                  },
                  {
                    value: 0,
                    name: '不缴纳',
                  },
                ]}
              />
            );
          }
        },
      },
      {
        label: '合同金额的',
        field: 'bidMargin',
        component: 'InputNumber',
        type: 'number',
        placeholder: '不得超过10%',
        contentAfter: '%',
        min: 0,
        max: 10,
        step: '0.01',
        required: true,
        colSpan: radioState?.bidMarginFlag == 0 || radioState?.bidMarginFlag == null ? 0 : 1,
        disabled,
      },
      // {
      //   label: '缴纳时间',
      //   field: 'bidMarginTime',
      //   placeholder: '请选择缴纳时间',
      //   component: 'Render',
      //   required: true,
      //   colSpan: radioState?.bidMarginFlag == 0 || radioState?.bidMarginFlag == null ? 0 : 1,
      //   slotRender: (text) => {
      //     if (disabled) {
      //       return <div style={{ marginLeft: '8px' }}>{text ? moment(text)?.format('YYYY-MM-DD') : '--'}</div>;
      //     } else {
      //       return (
      //         <>
      //           <Form.Item
      //             name={'bidMarginTime'}
      //             rules={[
      //               {
      //                 required: true,
      //                 message: '请选择缴纳时间',
      //               },
      //             ]}
      //           >
      //             <DatePicker />
      //           </Form.Item>
      //         </>
      //       );
      //     }
      //   },
      // },
      {
        label: '缴纳时间',
        field: 'bidMarginTime',
        placeholder: '请选择',
        component: 'Render',
        required: true,
        colSpan: radioState?.bidMarginFlag == 0 || radioState?.bidMarginFlag == null ? 0 : 1,
        ishidden: tableType == KJXYCG() || radioState?.bidMarginFlag == 0 || radioState?.bidMarginFlag == null ? true : false,
        slotRender: (text, record) => {
          if (disabled) {
            return <div style={{ marginLeft: '8px' }}>{text ? text : <span style={{ color: '#ccc' }}>--</span>}</div>;
          } else {
            return (
              <>
                <Form.Item
                  name={'bidMarginTime'}
                  rules={[
                    {
                      required: true,
                      message: '请输入',
                    },
                  ]}
                >
                  <Input placeholder="请输入缴纳时间" />
                </Form.Item>
              </>
            );
          }
        },
      },
      {
        label: (
          <div>
            <span>七、正式招标文件</span>
            <span style={{ color: 'red', fontSize: '14px' }}>（采购文件定稿后上传）</span>
          </div>
        ),
        field: 'documentsTitle',
        component: 'Title',
      },
      {
        label: '正式采购文件',
        field: 'busiFileURL',
        component: 'Render',
        colSpan: 2,
        slotRender: (text) => {
          const fileName = 'busiFileURL';
          return (
            <>
              {!disabled ? (
                <UploadFormCommon
                  form={formRef}
                  fileFormName={fileName}
                  spanCol={24}
                  inRowProportion={24}
                  name={'attachFile'}
                  required={false}
                  accept={'.doc|.docx'}
                  url={'/purchaseSourceController/uploadFile'}
                  downloadUrl={'/purchaseSourceController/downloadFile'}
                  fileFormDelName={'delFile'}
                  maxFile={1}
                  delFunc={(delFilePath: string) => {
                    handleDelFileFn(delFilePath, fileName);
                  }}
                  uploadSuccessCallback={(attachPaths) => {
                    handleAddFileFn(attachPaths, fileName);
                  }}
                  defaultFiles={text}
                  hintTitle={'且只能上传 1 个！'}
                  fieldBusiPath={'purchase/source'}
                  isShowUploadBtn={true}
                >
                  上传
                </UploadFormCommon>
              ) : (
                <div
                  style={{
                    height: '100%',
                    display: 'flex',
                    alignItems: 'center',
                    marginLeft: '8px',
                  }}
                >
                  {radioState?.[fileName]
                    ? splitFileUrl(radioState?.[fileName])?.map((e) => {
                        return (
                          <Tooltip title={e.attachName} key={new Date().getTime() * 25615265152 + e?.attachName}>
                            <a
                              onClick={() => {
                                message.success('下载中，请稍后...');
                                downloadTemplate('/purchaseSourceController/downloadFile', e?.attachName, e?.attachUrl, () => {});
                              }}
                            >
                              <MyIcon type="icon-file-text-fill" />
                              &nbsp;
                              {getFileNameNotType(e.attachName, 8)}
                            </a>
                          </Tooltip>
                        );
                      })
                    : '--'}
                </div>
              )}
            </>
          );
        },
      },
      {
        label: '招标文件',
        field: 'bidFileURL',
        component: 'Render',
        colSpan: 2,
        slotRender: (text) => {
          const fileName = 'bidFileURL';
          return (
            <>
              {!disabled ? (
                <UploadFormCommon
                  form={formRef}
                  fileFormName={fileName}
                  spanCol={24}
                  inRowProportion={24}
                  name={'attachFile'}
                  required={false}
                  accept={'.doc|.docx'}
                  url={'/purchaseSourceController/uploadFile'}
                  downloadUrl={'/purchaseSourceController/downloadFile'}
                  fileFormDelName={'delFile'}
                  maxFile={1}
                  delFunc={(delFilePath: string) => {
                    handleDelFileFn(delFilePath, fileName);
                  }}
                  uploadSuccessCallback={(attachPaths) => {
                    handleAddFileFn(attachPaths, fileName);
                  }}
                  defaultFiles={text}
                  hintTitle={'且只能上传 1 个！'}
                  fieldBusiPath={'purchase/source'}
                  isShowUploadBtn={true}
                >
                  上传
                </UploadFormCommon>
              ) : (
                <div
                  style={{
                    height: '100%',
                    display: 'flex',
                    alignItems: 'center',
                    marginLeft: '8px',
                  }}
                >
                  {radioState?.[fileName]
                    ? splitFileUrl(radioState?.[fileName])?.map((e) => {
                        return (
                          <Tooltip title={e.attachName} key={new Date().getTime() * 25615265152 + e?.attachName}>
                            <a
                              onClick={() => {
                                message.success('下载中，请稍后...');
                                downloadTemplate('/purchaseSourceController/downloadFile', e?.attachName, e?.attachUrl, () => {});
                              }}
                            >
                              <MyIcon type="icon-file-text-fill" />
                              &nbsp;
                              {getFileNameNotType(e.attachName, 8)}
                            </a>
                          </Tooltip>
                        );
                      })
                    : '--'}
                </div>
              )}
            </>
          );
        },
      },
    ];
  } else if (tableType == YQZB()) {
    // 2
    return [
      {
        label: '一、基本信息',
        field: 'baseInfoTitle',
        component: 'Title',
      },
      {
        label: '标包名称',
        field: 'packName',
        component: 'Input',
        disabled: true,
      },
      {
        label: '包号',
        field: 'packCode',
        component: 'Input',
        disabled: true,
      },
      {
        label: '所属行业',
        field: 'industryKind',
        component: 'Select',
        fieldNames: { label: 'name', value: 'value' },
        options: industry_involveds,
        required: true,
        disabled,
      },
      {
        label: '项目属性',
        field: 'supplyType',
        component: 'Render',
        slotRender: (text) => {
          let name = '';
          if (text == `${getTenantID()}${ILoadMapTypeAll?.PURCHASE_CATEGORY}1000`) {
            text = '1';
            name = '货物类';
          } else {
            text = '0';
            name = '服务类';
          }
          return (
            <>
              {disabled ? (
                <span style={{ paddingLeft: 8 }}>{name}</span>
              ) : (
                <TagSelect colSpan={24} formLabel={''} formName={'supplyType'} defalultKeys={text} radioList={supplyTypeList} radioDisabled={true} />
              )}
            </>
          );
        },
      },
      {
        label: '预算金额',
        field: 'expectSum',
        component: 'InputNumber',
        formatter: (value: number) => {
          if (value) {
            return Number(value).toFixed(2);
          }
        },
        contentAfter: '元',
        disabled: true,
      },
      {
        label: '最高限价',
        field: 'expectCeilSum',
        component: 'InputNumber',
        formatter: (value: number) => {
          if (value) {
            return Number(value).toFixed(2);
          }
        },
        min: 1,
        contentAfter: '元',
        disabled,
        required: true,
      },
      {
        label: '拟采用采购方式',
        field: 'procureReal',
        component: 'Input',
        disabled: true,
      },
      {
        label: '投标有效期',
        field: disabled ? 'Render' : 'bidPeriodDay',
        placeholder: '请选择投标有效期',
        component: 'Render',
        required: true,
        slotRender: (text) => {
          return (
            <>
              <div className="criteria-btnStyle">
                <div style={{ flex: 'auto', alignItems: 'center' }}>
                  {disabled ? (
                    <div
                      className={'formItem-bidPeriodDay'}
                      style={{ paddingLeft: 8, display: 'flex', alignItems: 'center', overflow: 'hidden', height: '100%' }}
                    >
                      <span>{infoState?.bidPeriodDay || '--'}</span>
                    </div>
                  ) : (
                    <Form.Item
                      name={'bidPeriodDay'}
                      className={'formItem-bidPeriodDay'}
                      rules={[
                        {
                          required: true,
                          message: '请选择投标有效期',
                        },
                        {
                          pattern: RegularExpression.integerNumber,
                          message: '输入的投标有效期必须是正整数',
                        },
                      ]}
                    >
                      <AutoComplete
                        value={text}
                        disabled={disabled}
                        placeholder="请选择/输入投标有效期"
                        defaultValue={'60'}
                        options={[
                          {
                            label: '60',
                            value: '60',
                          },
                          {
                            label: '90',
                            value: '90',
                          },
                          {
                            label: '120',
                            value: '120',
                          },
                        ]}
                      />
                    </Form.Item>
                  )}
                </div>
                <div className="criteria-btnStyle-bottomIcon">日</div>
              </div>
            </>
          );
          // }
        },
      },
      {
        label: '是否科研仪器设备',
        field: 'sciequipFlag',
        component: 'Render',
        colSpan: radioState?.supplyType == 0 ? 1 : 0,
        required: true,
        slotRender: (text: string = '0') => {
          let name = '';
          if (text == '1') {
            name = '是';
          } else {
            name = '否';
          }

          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>{name}</span>;
          } else {
            return (
              <TagSelect
                colSpan={24}
                formLabel={''}
                formName={'sciequipFlag'}
                defalultKeys={Number(text)}
                radioList={[
                  {
                    value: 1,
                    name: '是',
                  },
                  {
                    value: 0,
                    name: '否',
                  },
                ]}
                radioDisabled={disabled}
              />
            );
          }
        },
      },
      {
        label: '是否接受进口',
        field: 'importFlag',
        component: 'Render',
        colSpan: radioState?.supplyType == 0 ? 1 : 0,
        required: true,
        slotRender: (text: string = '0') => {
          let name = '';
          if (text == '1') {
            name = '是';
          } else {
            name = '否';
          }

          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>{name}</span>;
          } else {
            return (
              <TagSelect
                colSpan={24}
                formLabel={''}
                formName={'importFlag'}
                defalultKeys={Number(text)}
                radioList={[
                  {
                    value: 1,
                    name: '是',
                  },
                  {
                    value: 0,
                    name: '否',
                  },
                ]}
                radioDisabled={disabled}
              />
            );
          }
        },
      },
      {
        label: '是否单一产品采购项目',
        field: 'productFlag',
        component: 'Render',
        required: true,
        colSpan: radioState?.supplyType == 0 ? (radioState.productFlag == 0 || radioState.productFlag == null ? 2 : 1) : 0,
        slotRender: (text: any = 0) => {
          let name = '';
          if (text == '1') {
            name = '是';
          } else {
            name = '否';
          }
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>{name}</span>;
          } else {
            return (
              <TagSelect
                colSpan={24}
                formLabel={''}
                formName={'productFlag'}
                onChange={(value) => {
                  changeRadio(value, 'productFlag');
                }}
                defalultKeys={Number(text)}
                radioList={[
                  {
                    value: 1,
                    name: '是',
                  },
                  {
                    value: 0,
                    name: '否',
                  },
                ]}
                radioDisabled={disabled}
              />
            );
          }
        },
      },
      {
        label: '核心产品',
        field: 'productName',
        component: 'Input',
        disabled,
        required: true,
        colSpan: radioState?.supplyType == 0 ? (radioState.productFlag == 0 || radioState.productFlag == null ? 0 : 1) : 0,
      },
      {
        label: '二、分包要求',
        field: 'packTitle',
        component: 'Title',
      },
      {
        label: '分包',
        field: 'packFlag',
        component: 'Render',
        colSpan: 2,
        slotRender: (text: string = '0') => {
          let name = '';
          if (text == '1') {
            name = '允许';
          } else {
            name = '不允许';
          }

          return (
            <>
              {disabled ? (
                <span style={{ paddingLeft: 8 }}>{name}</span>
              ) : (
                <TagSelect
                  colSpan={24}
                  formLabel={''}
                  formName={'packFlag'}
                  onChange={(value) => {
                    changeRadio(value, 'packFlag');
                  }}
                  radioDisabled={disabled}
                  defalultKeys={Number(text)}
                  radioList={[
                    {
                      value: 1,
                      name: '允许',
                    },
                    {
                      value: 0,
                      name: '不允许',
                    },
                  ]}
                />
              )}
            </>
          );
        },
      },
      {
        label: '允许分包的比例',
        field: 'packScale',
        component: 'InputNumber',
        type: 'number',
        min: 0,
        max: 100,
        step: '0.01',
        colSpan: radioState.packFlag == 0 ? 0 : 1,
        contentAfter: '%',
        disabled,
        required: true,
      },
      {
        label: '允许分包的金额',
        field: 'packScale1',
        component: 'Render',
        placeholder: '根据分包比例自动算出',
        disabled: true,
        colSpan: radioState.packFlag == 0 ? 0 : 1,
        contentAfter: '元',
        slotRender: (text, record) => {
          return <div style={{ marginLeft: '8px' }}>{calculate(Number(record?.expectSum), Number(record?.packScale))}</div>;
        },
        required: true,
      },
      {
        label: '可以分包履行的具体内容',
        field: 'packContent',
        component: disabled ? 'Render' : 'InputTextArea',
        slotRender: (text) => {
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>暂无</span>;
          }
        },
        maxLength: 200,
        allowClear: true,
        autoSize: { minRows: 3, maxRows: 4 },
        showCount: true,
        colSpan: radioState.packFlag == 0 ? 0 : 2,
        disabled,
        required: true,
      },
      {
        label: '分包其他要求',
        field: 'packOther',
        colSpan: radioState.packFlag == 0 ? 0 : 2,
        component: disabled ? 'Render' : 'InputTextArea',
        slotRender: (text) => {
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>暂无</span>;
          }
        },
        maxLength: 200,
        allowClear: true,
        autoSize: { minRows: 3, maxRows: 4 },
        showCount: true,
        disabled,
        required: true,
      },
      {
        label: '三、投标人/供应商要求',
        field: 'requirementsTitle',
        component: 'Title',
      },
      {
        label: '是否接受联合体',
        field: 'complexFlag',
        component: 'Render',
        colSpan: 2,
        required: true,
        slotRender: (text: string = '0') => {
          let name = '';
          if (text == '1') {
            name = '是';
          } else {
            name = '否';
          }
          return (
            <>
              {disabled ? (
                <span style={{ paddingLeft: 8 }}>{name}</span>
              ) : (
                <TagSelect
                  colSpan={24}
                  formLabel={''}
                  formName={'complexFlag'}
                  defalultKeys={Number(text)}
                  radioList={[
                    {
                      value: 1,
                      name: '是',
                    },
                    {
                      value: 0,
                      name: '否',
                    },
                  ]}
                  radioDisabled={disabled}
                />
              )}
            </>
          );
        },
      },
      {
        label: '投标人特定资格要求',
        field: 'sourceContent',
        component: disabled ? 'Render' : 'InputTextArea',
        maxLength: 200,
        allowClear: true,
        autoSize: { minRows: 3, maxRows: 4 },
        showCount: true,
        colSpan: 2,
        disabled,
        required: true,
        slotRender: (text) => {
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>暂无</span>;
          }
        },
      },
      {
        label: '四、评标方法及标准',
        field: 'evaluationTitle',
        component: 'Title',
      },
      {
        label: '评标方法',
        field: 'evalStyle',
        component: 'Render',
        colSpan: radioState?.evalStyle == `${getTenantID()}${ILoadMapTypeAll?.EVALSTYLE_TYPE}1003` ? 2 : 1,
        slotRender: (text: string = `${getTenantID()}${ILoadMapTypeAll?.EVALSTYLE_TYPE}1002`) => {
          let name = '';
          if (text == `${getTenantID()}${ILoadMapTypeAll?.EVALSTYLE_TYPE}1002`) {
            name = '综合评分法';
          } else {
            name = '最低评标价法';
          }
          return (
            <>
              {disabled ? (
                <span style={{ paddingLeft: 8 }}>{name}</span>
              ) : (
                <TagSelect
                  colSpan={24}
                  formLabel={''}
                  formName={'evalStyle'}
                  onChange={(value) => {
                    changeRadio(value, 'evalStyle');
                  }}
                  defalultKeys={text}
                  radioList={PBFF}
                  radioDisabled={disabled}
                />
              )}
            </>
          );
        },
      },
      {
        label: '评分标准',
        field: 'evalFileURL',
        placeholder: '请选择评标方法',
        component: 'Render',
        colSpan: radioState.evalStyle == `${getTenantID()}${ILoadMapTypeAll?.EVALSTYLE_TYPE}1003` ? 0 : 1,
        slotRender: (text) => {
          let fileName = 'evalFileURL';
          return (
            <div className="criteria-btnStyle">
              <div style={{ flex: 'auto', alignItems: 'center' }}>
                {!disabled ? (
                  <UploadFormCommon
                    form={formRef}
                    fileFormName={fileName}
                    spanCol={24}
                    inRowProportion={24}
                    name={'attachFile'}
                    required={false}
                    accept={'.doc|.docx'}
                    url={'/purchaseSourceController/uploadFile'}
                    downloadUrl={'/purchaseSourceController/downloadFile'}
                    fileFormDelName={'delFile'}
                    maxFile={1}
                    delFunc={(delFilePath: string) => {
                      handleDelFileFn(delFilePath, fileName);
                    }}
                    uploadSuccessCallback={(attachPaths) => {
                      handleAddFileFn(attachPaths, fileName);
                    }}
                    defaultFiles={text}
                    hintTitle={'且只能上传 1 个！'}
                    fieldBusiPath={'purchase/source'}
                    isShowUploadBtn={true}
                  >
                    上传
                  </UploadFormCommon>
                ) : (
                  <div
                    style={{
                      height: '100%',
                      display: 'flex',
                      alignItems: 'center',
                      marginLeft: '8px',
                    }}
                  >
                    {radioState?.[fileName]
                      ? splitFileUrl(radioState?.[fileName])?.map((e) => {
                          return (
                            <Tooltip title={e.attachName} key={new Date().getTime() * 25615265152 + e?.attachName}>
                              <a
                                onClick={() => {
                                  message.success('下载中，请稍后...');
                                  downloadTemplate('/purchaseSourceController/downloadFile', e?.attachName, e?.attachUrl, () => {});
                                }}
                              >
                                <MyIcon type="icon-file-text-fill" />
                                &nbsp;
                                {getFileNameNotType(e.attachName, 8)}
                              </a>
                            </Tooltip>
                          );
                        })
                      : '--'}
                  </div>
                )}
              </div>
              <div className="criteria-btnStyle-bottomIcon">
                <a onClick={() => {}}>
                  <Tooltip title={`下载模板`}>
                    <VerticalAlignBottomOutlined />
                  </Tooltip>
                </a>
              </div>
            </div>
          );
        },
      },
      {
        label: '五、采购需求及合同范本',
        field: 'requirements',
        component: 'Title',
      },
      {
        label: '统一合同范本',
        field: 'templateFlag',
        component: 'Render',
        colSpan: 2,
        slotRender: (text: string = '0') => {
          let name = '';
          if (text == '1') {
            name = '是';
          } else {
            name = '否';
          }
          return (
            <>
              {disabled ? (
                <span style={{ paddingLeft: 8 }}>{name}</span>
              ) : (
                <TagSelect
                  colSpan={24}
                  formLabel={''}
                  formName={'templateFlag'}
                  defalultKeys={Number(text)}
                  onChange={(value) => {
                    changeRadio(value, 'templateFlag');
                  }}
                  radioList={[
                    {
                      value: 1,
                      name: '是',
                    },
                    {
                      value: 0,
                      name: '否',
                    },
                  ]}
                  radioDisabled={disabled}
                />
              )}
            </>
          );
        },
      },
      {
        label: '合同范本',
        field: 'contract',
        component: 'Input',
        placeholder: '请选择合同范本',
        message: '请选择合同范本',
        disabled: true,
        required: true,
        colSpan: Number(radioState.templateFlag) == 1 ? 2 : 0,
        contentAfter: (
          <a
            onClick={() => {
              setIsShow(true);
            }}
          >
            <SearchOutlined />
          </a>
        ),
      },
      {
        label: '合同文本',
        field: 'contractURL',
        component: 'Render',
        required: true,
        colSpan: Number(radioState.templateFlag) == 0 ? 2 : radioState?.templateFlag == undefined ? 2 : 0,
        slotRender: (text) => {
          const fileName = 'contractURL';
          return (
            <div className="criteria-btnStyle">
              <div style={{ flex: 'auto', alignItems: 'center' }}>
                {!disabled ? (
                  <UploadFormCommon
                    form={formRef}
                    fileFormName={fileName}
                    spanCol={24}
                    inRowProportion={24}
                    name={'attachFile'}
                    required={true}
                    accept={'.doc|.docx'}
                    url={'/purchaseSourceController/uploadFile'}
                    downloadUrl={'/purchaseSourceController/downloadFile'}
                    fileFormDelName={'delFile'}
                    maxFile={1}
                    delFunc={(delFilePath: string) => {
                      handleDelFileFn(delFilePath, fileName);
                    }}
                    uploadSuccessCallback={(attachPaths) => {
                      handleAddFileFn(attachPaths, fileName);
                    }}
                    defaultFiles={text}
                    hintTitle={'且只能上传 1 个！'}
                    fieldBusiPath={'purchase/source'}
                    isShowUploadBtn={true}
                  >
                    上传
                  </UploadFormCommon>
                ) : (
                  <div
                    style={{
                      height: '100%',
                      display: 'flex',
                      alignItems: 'center',
                      marginLeft: '8px',
                    }}
                  >
                    {radioState?.[fileName]
                      ? splitFileUrl(radioState?.[fileName])?.map((e) => {
                          return (
                            <Tooltip title={e.attachName} key={new Date().getTime() * 25615265152 + e?.attachName}>
                              <a
                                onClick={() => {
                                  message.success('下载中，请稍后...');
                                  downloadTemplate('/purchaseSourceController/downloadFile', e?.attachName, e?.attachUrl, () => {});
                                }}
                              >
                                <MyIcon type="icon-file-text-fill" />
                                &nbsp;
                                {getFileNameNotType(e.attachName, 8)}
                              </a>
                            </Tooltip>
                          );
                        })
                      : '--'}
                  </div>
                )}
              </div>
              <div className="criteria-btnStyle-bottomIcon">
                <a onClick={() => {}}>
                  <Tooltip title={`下载模板`}>
                    <VerticalAlignBottomOutlined />
                  </Tooltip>
                </a>
              </div>
            </div>
          );
        },
      },
      {
        label: '采购需求',
        field: 'needFileURL',
        component: 'Render',
        colSpan: 2,
        slotRender: (text) => {
          const fileName = 'needFileURL';
          return (
            <>
              {!disabled ? (
                <UploadFormCommon
                  form={formRef}
                  fileFormName={fileName}
                  spanCol={24}
                  inRowProportion={24}
                  name={'attachFile'}
                  required={false}
                  accept={'.doc|.docx'}
                  url={'/purchaseSourceController/uploadFile'}
                  downloadUrl={'/purchaseSourceController/downloadFile'}
                  fileFormDelName={'delFile'}
                  maxFile={1}
                  delFunc={(delFilePath: string) => {
                    handleDelFileFn(delFilePath, fileName);
                  }}
                  uploadSuccessCallback={(attachPaths) => {
                    handleAddFileFn(attachPaths, fileName);
                  }}
                  defaultFiles={text}
                  hintTitle={'且只能上传 1 个！'}
                  fieldBusiPath={'purchase/source'}
                  isShowUploadBtn={true}
                >
                  上传
                </UploadFormCommon>
              ) : (
                <div
                  style={{
                    height: '100%',
                    display: 'flex',
                    alignItems: 'center',
                    marginLeft: '8px',
                  }}
                >
                  {radioState?.[fileName]
                    ? splitFileUrl(radioState?.[fileName])?.map((e) => {
                        return (
                          <Tooltip title={e.attachName} key={new Date().getTime() * 25615265152 + e?.attachName}>
                            <a
                              onClick={() => {
                                message.success('下载中，请稍后...');
                                downloadTemplate('/purchaseSourceController/downloadFile', e?.attachName, e?.attachUrl, () => {});
                              }}
                            >
                              <MyIcon type="icon-file-text-fill" />
                              &nbsp;
                              {getFileNameNotType(e.attachName, 8)}
                            </a>
                          </Tooltip>
                        );
                      })
                    : '--'}
                </div>
              )}
            </>
          );
        },
      },
      {
        label: '六、其他要求',
        field: 'otherInfo',
        component: 'Title',
      },
      {
        label: '是否现场考察',
        field: 'siteVisitFlag',
        component: 'Render',
        colSpan: radioState.siteVisitFlag == 0 ? 2 : 1,
        slotRender: (text: string = '0') => {
          let name = '';
          if (text == '1') {
            name = '组织';
          } else {
            name = '不组织';
          }
          return (
            <>
              {disabled ? (
                <span style={{ paddingLeft: 8 }}>{name}</span>
              ) : (
                <TagSelect
                  colSpan={24}
                  formLabel={''}
                  formName={'siteVisitFlag'}
                  onChange={(value) => {
                    changeRadio(value, 'siteVisitFlag');
                  }}
                  defalultKeys={Number(text)}
                  radioDisabled={disabled}
                  radioList={[
                    {
                      value: 1,
                      name: '组织',
                    },
                    {
                      value: 0,
                      name: '不组织',
                    },
                  ]}
                />
              )}
            </>
          );
        },
      },
      {
        label: '考察时间',
        field: 'siteVisitTime',
        placeholder: '请选择考察时间',
        component: 'Render',
        required: true,
        colSpan: radioState.siteVisitFlag == 0 ? 0 : 1,
        slotRender: (text) => {
          if (disabled) {
            return <div style={{ marginLeft: '8px' }}>{text ? moment(text)?.format('YYYY-MM-DD') : '--'}</div>;
          } else {
            return (
              <>
                <Form.Item
                  name={'siteVisitTime'}
                  rules={[
                    {
                      required: true,
                      message: '请选择考察时间',
                    },
                  ]}
                >
                  <DatePicker />
                </Form.Item>
              </>
            );
          }
        },
      },
      {
        label: '考察地点',
        field: 'siteVisitAddress',
        maxLength: 200,
        component: disabled ? 'Render' : 'InputTextArea',
        slotRender: (text) => {
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>暂无</span>;
          }
        },
        allowClear: true,
        autoSize: { minRows: 3, maxRows: 4 },
        showCount: true,
        required: true,
        colSpan: radioState.siteVisitFlag == 0 ? 0 : 2,
        disabled,
      },
      {
        label: '开标前答疑会',
        field: 'meetFlag',
        component: 'Render',
        colSpan: radioState.meetFlag == 0 ? 2 : 1,
        slotRender: (text: string = '0') => {
          let name = '';
          if (text == '1') {
            name = '召开';
          } else {
            name = '不召开';
          }

          return (
            <>
              {disabled ? (
                <span style={{ paddingLeft: 8 }}>{name}</span>
              ) : (
                <TagSelect
                  colSpan={24}
                  formLabel={''}
                  formName={'meetFlag'}
                  onChange={(value) => {
                    changeRadio(value, 'meetFlag');
                  }}
                  radioDisabled={disabled}
                  defalultKeys={Number(text)}
                  radioList={[
                    {
                      value: 1,
                      name: '召开',
                    },
                    {
                      value: 0,
                      name: '不召开',
                    },
                  ]}
                />
              )}
            </>
          );
        },
      },
      {
        label: '召开时间',
        field: 'meetTime',
        placeholder: '请选择召开时间',
        component: 'Render',
        required: true,
        colSpan: radioState.meetFlag == 0 ? 0 : 1,
        slotRender: (text) => {
          if (disabled) {
            return <div style={{ marginLeft: '8px' }}>{text ? moment(text)?.format('YYYY-MM-DD') : '--'}</div>;
          } else {
            return (
              <>
                <Form.Item name={'meetTime'} rules={[{ required: true, message: '请选择召开时间' }]}>
                  <DatePicker />
                </Form.Item>
              </>
            );
          }
        },
      },
      {
        label: '召开地点',
        field: 'meetAddress',
        maxLength: 200,
        component: disabled ? 'Render' : 'InputTextArea',
        slotRender: (text) => {
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>暂无</span>;
          }
        },
        allowClear: true,
        autoSize: { minRows: 3, maxRows: 4 },
        showCount: true,
        required: true,
        disabled,
        colSpan: radioState.meetFlag == 0 ? 0 : 2,
      },
      {
        label: '是否需要样品',
        field: 'sampleFlag',
        component: 'Render',
        colSpan: radioState.sampleFlag == 0 ? 2 : 1,
        slotRender: (text: string = '0') => {
          let name = '';
          if (text == '1') {
            name = '需要';
          } else {
            name = '不需要';
          }

          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>{name}</span>;
          } else {
            return (
              <TagSelect
                colSpan={24}
                formLabel={''}
                onChange={(value) => {
                  changeRadio(value, 'sampleFlag');
                }}
                formName={'sampleFlag'}
                defalultKeys={Number(text)}
                radioDisabled={disabled}
                radioList={[
                  {
                    value: 1,
                    name: '需要',
                  },
                  {
                    value: 0,
                    name: '不需要',
                  },
                ]}
              />
            );
          }
        },
      },
      {
        label: '相关检测报告',
        field: 'sampleCheck',
        component: 'Render',
        colSpan: radioState.sampleFlag == 0 ? 0 : 1,
        slotRender: (text: string = '0') => {
          let name = '';
          if (text == '1') {
            name = '需要';
          } else {
            name = '不需要';
          }

          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>{name}</span>;
          } else {
            return (
              <TagSelect
                colSpan={24}
                formLabel={''}
                formName={'sampleCheck'}
                onChange={(value) => {
                  changeRadio(value, 'sampleCheck');
                }}
                radioDisabled={disabled}
                defalultKeys={Number(text)}
                radioList={[
                  {
                    value: 1,
                    name: '需要',
                  },
                  {
                    value: 0,
                    name: '不需要',
                  },
                ]}
              />
            );
          }
        },
      },
      {
        label: '样品制作的标准和要求',
        field: 'sampleMake',
        maxLength: 200,
        component: disabled ? 'Render' : 'InputTextArea',
        slotRender: (text) => {
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>暂无</span>;
          }
        },
        allowClear: true,
        autoSize: { minRows: 3, maxRows: 4 },
        showCount: true,
        required: true,
        disabled,
        colSpan: radioState.sampleFlag == 0 ? 0 : 2,
      },
      {
        label: '未中标人样品退还',
        field: 'sampleReturn',
        component: disabled ? 'Render' : 'InputTextArea',
        slotRender: (text) => {
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>暂无</span>;
          }
        },
        allowClear: true,
        maxLength: 200,
        required: true,
        autoSize: { minRows: 3, maxRows: 4 },
        showCount: true,
        disabled,
        colSpan: radioState.sampleFlag == 0 ? 0 : radioState.sampleCheck == 0 ? 0 : 2,
      },
      {
        label: '中标人样品保管、封存及退还',
        field: 'sampleSeal',
        component: disabled ? 'Render' : 'InputTextArea',
        slotRender: (text) => {
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>暂无</span>;
          }
        },
        allowClear: true,
        maxLength: 200,
        autoSize: { minRows: 3, maxRows: 4 },
        showCount: true,
        required: true,
        disabled,
        colSpan: radioState.sampleFlag == 0 ? 0 : radioState.sampleCheck == 0 ? 0 : 2,
      },
      {
        label: '样品递交要求',
        field: 'sampleDeliver',
        component: disabled ? 'Render' : 'InputTextArea',
        slotRender: (text) => {
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>暂无</span>;
          }
        },
        allowClear: true,
        maxLength: 200,
        autoSize: { minRows: 3, maxRows: 4 },
        showCount: true,
        required: true,
        disabled,
        colSpan: radioState.sampleFlag == 0 ? 0 : radioState.sampleCheck == 0 ? 0 : 2,
      },
      {
        label: '样品其他要求',
        field: 'sampleOther',
        component: disabled ? 'Render' : 'InputTextArea',
        slotRender: (text) => {
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>暂无</span>;
          }
        },
        maxLength: 200,
        allowClear: true,
        autoSize: { minRows: 3, maxRows: 4 },
        showCount: true,
        disabled,
        colSpan: radioState.sampleFlag == 0 ? 0 : radioState.sampleCheck == 0 ? 0 : 2,
      },
      {
        label: '履约保证金',
        field: 'bidMarginFlag',
        component: 'Render',
        colSpan: 2,
        slotRender: (text: string = '1') => {
          let name = '';
          if (text == '1') {
            name = '缴纳';
          } else {
            name = '不缴纳';
          }
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>{name}</span>;
          } else {
            return (
              <TagSelect
                colSpan={24}
                formLabel={''}
                formName={'bidMarginFlag'}
                onChange={(value) => {
                  changeRadio(value, 'bidMarginFlag');
                }}
                defalultKeys={Number(text)}
                radioDisabled={disabled}
                radioList={[
                  {
                    value: 1,
                    name: '缴纳',
                  },
                  {
                    value: 0,
                    name: '不缴纳',
                  },
                ]}
              />
            );
          }
        },
      },
      {
        label: '合同金额的',
        field: 'bidMargin',
        component: 'InputNumber',
        type: 'number',
        placeholder: '不得超过10%',
        contentAfter: '%',
        min: 0,
        max: 10,
        step: '0.01',
        required: true,
        colSpan: radioState?.bidMarginFlag == 0 || radioState?.bidMarginFlag == null ? 0 : 1,
        disabled,
      },
      // {
      //   label: '缴纳时间',
      //   field: 'bidMarginTime',
      //   placeholder: '请选择缴纳时间',
      //   component: 'Render',
      //   required: true,
      //   colSpan: radioState?.bidMarginFlag == 0 || radioState?.bidMarginFlag == null ? 0 : 1,
      //   slotRender: (text) => {
      //     if (disabled) {
      //       return <div style={{ marginLeft: '8px' }}>{text ? moment(text)?.format('YYYY-MM-DD') : '--'}</div>;
      //     } else {
      //       return (
      //         <>
      //           <Form.Item
      //             name={'bidMarginTime'}
      //             rules={[
      //               {
      //                 required: true,
      //                 message: '请选择缴纳时间',
      //               },
      //             ]}
      //           >
      //             <DatePicker />
      //           </Form.Item>
      //         </>
      //       );
      //     }
      //   },
      // },
      {
        label: '缴纳时间',
        field: 'bidMarginTime',
        placeholder: '请选择',
        component: 'Render',
        required: true,
        colSpan: radioState?.bidMarginFlag == 0 || radioState?.bidMarginFlag == null ? 0 : 1,
        ishidden: tableType == KJXYCG() || radioState?.bidMarginFlag == 0 || radioState?.bidMarginFlag == null ? true : false,
        slotRender: (text, record) => {
          if (disabled) {
            return <div style={{ marginLeft: '8px' }}>{text ? text : <span style={{ color: '#ccc' }}>--</span>}</div>;
          } else {
            return (
              <>
                <Form.Item
                  name={'bidMarginTime'}
                  rules={[
                    {
                      required: true,
                      message: '请输入',
                    },
                  ]}
                >
                  <Input placeholder="请输入缴纳时间" />
                </Form.Item>
              </>
            );
          }
        },
      },
      {
        label: (
          <div>
            <span>七、正式招标文件</span>
            <span style={{ color: 'red', fontSize: '14px' }}>（采购文件定稿后上传）</span>
          </div>
        ),
        field: 'documentsTitle',
        component: 'Title',
      },
      {
        label: '正式采购文件',
        field: 'busiFileURL',
        component: 'Render',
        colSpan: 2,
        slotRender: (text) => {
          const fileName = 'busiFileURL';
          return (
            <>
              {!disabled ? (
                <UploadFormCommon
                  form={formRef}
                  fileFormName={fileName}
                  spanCol={24}
                  inRowProportion={24}
                  name={'attachFile'}
                  required={false}
                  accept={'.doc|.docx'}
                  url={'/purchaseSourceController/uploadFile'}
                  downloadUrl={'/purchaseSourceController/downloadFile'}
                  fileFormDelName={'delFile'}
                  maxFile={1}
                  delFunc={(delFilePath: string) => {
                    handleDelFileFn(delFilePath, fileName);
                  }}
                  uploadSuccessCallback={(attachPaths) => {
                    handleAddFileFn(attachPaths, fileName);
                  }}
                  defaultFiles={text}
                  hintTitle={'且只能上传 1 个！'}
                  fieldBusiPath={'purchase/source'}
                  isShowUploadBtn={true}
                >
                  上传
                </UploadFormCommon>
              ) : (
                <div
                  style={{
                    height: '100%',
                    display: 'flex',
                    alignItems: 'center',
                    marginLeft: '8px',
                  }}
                >
                  {radioState?.[fileName]
                    ? splitFileUrl(radioState?.[fileName])?.map((e) => {
                        return (
                          <Tooltip title={e.attachName} key={new Date().getTime() * 25615265152 + e?.attachName}>
                            <a
                              onClick={() => {
                                message.success('下载中，请稍后...');
                                downloadTemplate('/purchaseSourceController/downloadFile', e?.attachName, e?.attachUrl, () => {});
                              }}
                            >
                              <MyIcon type="icon-file-text-fill" />
                              &nbsp;
                              {getFileNameNotType(e.attachName, 8)}
                            </a>
                          </Tooltip>
                        );
                      })
                    : '--'}
                </div>
              )}
            </>
          );
        },
      },
      {
        label: '招标文件',
        field: 'bidFileURL',
        component: 'Render',
        colSpan: 2,
        slotRender: (text) => {
          const fileName = 'bidFileURL';
          return (
            <>
              {!disabled ? (
                <UploadFormCommon
                  form={formRef}
                  fileFormName={fileName}
                  spanCol={24}
                  inRowProportion={24}
                  name={'attachFile'}
                  required={false}
                  accept={'.doc|.docx'}
                  url={'/purchaseSourceController/uploadFile'}
                  downloadUrl={'/purchaseSourceController/downloadFile'}
                  fileFormDelName={'delFile'}
                  maxFile={1}
                  delFunc={(delFilePath: string) => {
                    handleDelFileFn(delFilePath, fileName);
                  }}
                  uploadSuccessCallback={(attachPaths) => {
                    handleAddFileFn(attachPaths, fileName);
                  }}
                  defaultFiles={text}
                  hintTitle={'且只能上传 1 个！'}
                  fieldBusiPath={'purchase/source'}
                  isShowUploadBtn={true}
                >
                  上传
                </UploadFormCommon>
              ) : (
                <div
                  style={{
                    height: '100%',
                    display: 'flex',
                    alignItems: 'center',
                    marginLeft: '8px',
                  }}
                >
                  {radioState?.[fileName]
                    ? splitFileUrl(radioState?.[fileName])?.map((e) => {
                        return (
                          <Tooltip title={e.attachName} key={new Date().getTime() * 25615265152 + e?.attachName}>
                            <a
                              onClick={() => {
                                message.success('下载中，请稍后...');
                                downloadTemplate('/purchaseSourceController/downloadFile', e?.attachName, e?.attachUrl, () => {});
                              }}
                            >
                              <MyIcon type="icon-file-text-fill" />
                              &nbsp;
                              {getFileNameNotType(e.attachName, 8)}
                            </a>
                          </Tooltip>
                        );
                      })
                    : '--'}
                </div>
              )}
            </>
          );
        },
      },
    ];
  } else if (tableType == JZXCS()) {
    // 3
    return [
      {
        label: '一、基本信息',
        field: 'baseInfoTitle',
        component: 'Title',
      },
      {
        label: '标包名称',
        field: 'packName',
        component: 'Input',
        disabled: true,
      },
      {
        label: '包号',
        field: 'packCode',
        component: 'Input',
        disabled: true,
      },
      {
        label: '所属行业',
        field: 'industryKind',
        component: 'Select',
        fieldNames: { label: 'name', value: 'value' },
        options: industry_involveds,
        required: true,
        disabled,
      },
      {
        label: '项目属性',
        field: 'supplyType',
        component: 'Render',
        slotRender: (text) => {
          let name = '';
          if (text == `${getTenantID()}${ILoadMapTypeAll?.PURCHASE_CATEGORY}1000`) {
            text = '1';
            name = '货物类';
          } else {
            text = '0';
            name = '服务类';
          }
          return (
            <>
              {disabled ? (
                <span style={{ paddingLeft: 8 }}>{name}</span>
              ) : (
                <TagSelect colSpan={24} formLabel={''} formName={'supplyType'} defalultKeys={text} radioList={supplyTypeList} radioDisabled={true} />
              )}
            </>
          );
        },
      },
      {
        label: '预算金额',
        field: 'expectSum',
        component: 'InputNumber',
        formatter: (value: number) => {
          if (value) {
            return Number(value).toFixed(2);
          }
        },
        contentAfter: '元',
        disabled: true,
      },
      {
        label: '最高限价',
        field: 'expectCeilSum',
        component: 'InputNumber',
        formatter: (value: number) => {
          if (value) {
            return Number(value).toFixed(2);
          }
        },
        min: 1,
        contentAfter: '元',
        disabled,
        required: true,
      },
      {
        label: '拟采用采购方式',
        field: 'procureReal',
        component: 'Input',
        disabled: true,
      },
      {
        label: '投标有效期',
        field: disabled ? 'Render' : 'bidPeriodDay',
        placeholder: '请选择投标有效期',
        component: 'Render',
        required: true,
        slotRender: (text) => {
          return (
            <>
              <div className="criteria-btnStyle">
                <div style={{ flex: 'auto', alignItems: 'center' }}>
                  {disabled ? (
                    <div
                      className={'formItem-bidPeriodDay'}
                      style={{ paddingLeft: 8, display: 'flex', alignItems: 'center', overflow: 'hidden', height: '100%' }}
                    >
                      <span>{infoState?.bidPeriodDay || '--'}</span>
                    </div>
                  ) : (
                    <Form.Item
                      name={'bidPeriodDay'}
                      className={'formItem-bidPeriodDay'}
                      rules={[
                        {
                          required: true,
                          message: '请选择投标有效期',
                        },
                        {
                          pattern: RegularExpression.integerNumber,
                          message: '输入的投标有效期必须是正整数',
                        },
                      ]}
                    >
                      <AutoComplete
                        value={text}
                        disabled={disabled}
                        placeholder="请选择/输入投标有效期"
                        defaultValue={'60'}
                        options={[
                          {
                            label: '60',
                            value: '60',
                          },
                          {
                            label: '90',
                            value: '90',
                          },
                          {
                            label: '120',
                            value: '120',
                          },
                        ]}
                      />
                    </Form.Item>
                  )}
                </div>
                <div className="criteria-btnStyle-bottomIcon">日</div>
              </div>
            </>
          );
          // }
        },
      },
      {
        label: '是否科研仪器设备',
        field: 'sciequipFlag',
        component: 'Render',
        colSpan: radioState?.supplyType == 0 ? 1 : 0,
        required: true,
        slotRender: (text: string = '0') => {
          let name = '';
          if (text == '1') {
            name = '是';
          } else {
            name = '否';
          }

          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>{name}</span>;
          } else {
            return (
              <TagSelect
                colSpan={24}
                formLabel={''}
                formName={'sciequipFlag'}
                defalultKeys={Number(text)}
                radioList={[
                  {
                    value: 1,
                    name: '是',
                  },
                  {
                    value: 0,
                    name: '否',
                  },
                ]}
                radioDisabled={disabled}
              />
            );
          }
        },
      },
      {
        label: '是否接受进口',
        field: 'importFlag',
        component: 'Render',
        colSpan: radioState?.supplyType == 0 ? 1 : 0,
        required: true,
        slotRender: (text: string = '0', record: Record<string, any>) => {
          let name = '';
          if (text == '1') {
            name = '是';
          } else {
            name = '否';
          }

          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>{name}</span>;
          } else {
            return (
              <TagSelect
                colSpan={24}
                formLabel={''}
                formName={'importFlag'}
                defalultKeys={Number(text)}
                radioList={[
                  {
                    value: 1,
                    name: '是',
                  },
                  {
                    value: 0,
                    name: '否',
                  },
                ]}
                radioDisabled={disabled}
              />
            );
          }
        },
      },
      {
        label: '是否单一产品采购项目',
        field: 'productFlag',
        component: 'Render',
        required: true,
        colSpan: radioState?.supplyType == 0 ? (radioState.productFlag == 0 || radioState.productFlag == null ? 2 : 1) : 0,
        slotRender: (text: any = 0) => {
          let name = '';
          if (text == '1') {
            name = '是';
          } else {
            name = '否';
          }
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>{name}</span>;
          } else {
            return (
              <TagSelect
                colSpan={24}
                formLabel={''}
                formName={'productFlag'}
                onChange={(value) => {
                  changeRadio(value, 'productFlag');
                }}
                defalultKeys={Number(text)}
                radioList={[
                  {
                    value: 1,
                    name: '是',
                  },
                  {
                    value: 0,
                    name: '否',
                  },
                ]}
                radioDisabled={disabled}
              />
            );
          }
        },
      },
      {
        label: '核心产品',
        field: 'productName',
        component: 'Input',
        disabled,
        required: true,
        colSpan: radioState?.supplyType == 0 ? (radioState.productFlag == 0 || radioState.productFlag == null ? 0 : 1) : 0,
      },
      {
        label: '二、分包要求',
        field: 'baseInfoTitle',
        component: 'Title',
      },
      {
        label: '分包',
        field: 'packFlag',
        component: 'Render',
        colSpan: 2,
        slotRender: (text: string = '0') => {
          let name = '';
          if (text == '1') {
            name = '允许';
          } else {
            name = '不允许';
          }

          return (
            <>
              {disabled ? (
                <span style={{ paddingLeft: 8 }}>{name}</span>
              ) : (
                <TagSelect
                  colSpan={24}
                  formLabel={''}
                  formName={'packFlag'}
                  onChange={(value) => {
                    changeRadio(value, 'packFlag');
                  }}
                  radioDisabled={disabled}
                  defalultKeys={Number(text)}
                  radioList={[
                    {
                      value: 1,
                      name: '允许',
                    },
                    {
                      value: 0,
                      name: '不允许',
                    },
                  ]}
                />
              )}
            </>
          );
        },
      },
      {
        label: '允许分包的比例',
        field: 'packScale',
        component: 'InputNumber',
        type: 'number',
        min: 0,
        max: 100,
        step: '0.01',
        colSpan: radioState.packFlag == 0 ? 0 : 1,
        contentAfter: '%',
        disabled,
        required: true,
      },
      {
        label: '允许分包的金额',
        field: 'packScale1',
        component: 'Render',
        placeholder: '根据分包比例自动算出',
        disabled: true,
        colSpan: radioState.packFlag == 0 ? 0 : 1,
        contentAfter: '元',
        slotRender: (text, record) => {
          return <div style={{ marginLeft: '8px' }}>{calculate(Number(record?.expectSum), Number(record?.packScale))}</div>;
        },
        required: true,
      },
      {
        label: '可以分包履行的具体内容',
        field: 'packContent',
        component: disabled ? 'Render' : 'InputTextArea',
        slotRender: (text) => {
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>暂无</span>;
          }
        },
        maxLength: 200,
        allowClear: true,
        autoSize: { minRows: 3, maxRows: 4 },
        showCount: true,
        colSpan: radioState.packFlag == 0 ? 0 : 2,
        disabled,
        required: true,
      },
      {
        label: '分包其他要求',
        field: 'packOther',
        colSpan: radioState.packFlag == 0 ? 0 : 2,
        component: disabled ? 'Render' : 'InputTextArea',
        slotRender: (text) => {
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>暂无</span>;
          }
        },
        maxLength: 200,
        allowClear: true,
        autoSize: { minRows: 3, maxRows: 4 },
        showCount: true,
        disabled,
        required: true,
      },
      {
        label: '三、投标人/供应商要求',
        field: 'requirementsTitle',
        component: 'Title',
      },
      {
        label: '是否接受联合体',
        field: 'complexFlag',
        component: 'Render',
        colSpan: 2,
        required: true,
        slotRender: (text: string = '0') => {
          let name = '';
          if (text == '1') {
            name = '是';
          } else {
            name = '否';
          }
          return (
            <>
              {disabled ? (
                <span style={{ paddingLeft: 8 }}>{name}</span>
              ) : (
                <TagSelect
                  colSpan={24}
                  formLabel={''}
                  formName={'complexFlag'}
                  defalultKeys={Number(text)}
                  radioList={[
                    {
                      value: 1,
                      name: '是',
                    },
                    {
                      value: 0,
                      name: '否',
                    },
                  ]}
                  radioDisabled={disabled}
                />
              )}
            </>
          );
        },
      },
      {
        label: '供应商特定资格要求',
        field: 'sourceContent',
        component: disabled ? 'Render' : 'InputTextArea',
        slotRender: (text) => {
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>暂无</span>;
          }
        },
        maxLength: 200,
        allowClear: true,
        autoSize: { minRows: 3, maxRows: 4 },
        showCount: true,
        colSpan: 2,
        disabled,
      },
      {
        label: '四、评标方法及标准',
        field: 'evaluationTitle',
        component: 'Title',
      },
      {
        label: '评标方法',
        field: 'evalStyle',
        component: 'Render',
        colSpan: radioState?.evalStyle == `${getTenantID()}${ILoadMapTypeAll?.EVALSTYLE_TYPE}1003` ? 2 : 1,
        slotRender: (text: string = `${getTenantID()}${ILoadMapTypeAll?.EVALSTYLE_TYPE}1002`) => {
          let name = '';
          if (text == `${getTenantID()}${ILoadMapTypeAll?.EVALSTYLE_TYPE}1002`) {
            name = '综合评分法';
          } else {
            name = '最低评标价法';
          }
          return (
            <>
              {disabled ? (
                <span style={{ paddingLeft: 8 }}>{name}</span>
              ) : (
                <TagSelect
                  colSpan={24}
                  formLabel={''}
                  formName={'evalStyle'}
                  onChange={(value) => {
                    changeRadio(value, 'evalStyle');
                  }}
                  defalultKeys={text}
                  radioList={PBFF}
                  radioDisabled={disabled}
                />
              )}
            </>
          );
        },
      },
      {
        label: '评分标准',
        field: 'evalFileURL',
        placeholder: '请选择评标方法',
        component: 'Render',
        colSpan: radioState.evalStyle == `${getTenantID()}${ILoadMapTypeAll?.EVALSTYLE_TYPE}1003` ? 0 : 1,
        slotRender: (text) => {
          let fileName = 'evalFileURL';
          return (
            <div className="criteria-btnStyle">
              <div style={{ flex: 'auto', alignItems: 'center' }}>
                {!disabled ? (
                  <UploadFormCommon
                    form={formRef}
                    fileFormName={fileName}
                    spanCol={24}
                    inRowProportion={24}
                    name={'attachFile'}
                    required={false}
                    accept={'.doc|.docx'}
                    url={'/purchaseSourceController/uploadFile'}
                    downloadUrl={'/purchaseSourceController/downloadFile'}
                    fileFormDelName={'delFile'}
                    delFunc={(delFilePath: string) => {
                      handleDelFileFn(delFilePath, fileName);
                    }}
                    uploadSuccessCallback={(attachPaths) => {
                      handleAddFileFn(attachPaths, fileName);
                    }}
                    defaultFiles={text}
                    maxFile={1}
                    hintTitle={'且只能上传 1 个！'}
                    fieldBusiPath={'purchase/source'}
                    isShowUploadBtn={true}
                  >
                    上传
                  </UploadFormCommon>
                ) : (
                  <div
                    style={{
                      height: '100%',
                      display: 'flex',
                      alignItems: 'center',
                      marginLeft: '8px',
                    }}
                  >
                    {radioState?.[fileName]
                      ? splitFileUrl(radioState?.[fileName])?.map((e) => {
                          return (
                            <Tooltip title={e.attachName} key={new Date().getTime() * 25615265152 + e?.attachName}>
                              <a
                                onClick={() => {
                                  message.success('下载中，请稍后...');
                                  downloadTemplate('/purchaseSourceController/downloadFile', e?.attachName, e?.attachUrl, () => {});
                                }}
                              >
                                <MyIcon type="icon-file-text-fill" />
                                &nbsp;
                                {getFileNameNotType(e.attachName, 8)}
                              </a>
                            </Tooltip>
                          );
                        })
                      : '--'}
                  </div>
                )}
              </div>
              <div className="criteria-btnStyle-bottomIcon">
                <a onClick={() => {}}>
                  <Tooltip title={`下载模板`}>
                    <VerticalAlignBottomOutlined />
                  </Tooltip>
                </a>
              </div>
            </div>
          );
        },
      },
      {
        label: '五、采购需求及合同范本',
        field: 'requirements',
        component: 'Title',
      },
      {
        label: '统一合同范本',
        field: 'templateFlag',
        component: 'Render',
        colSpan: 2,
        slotRender: (text: string = '0') => {
          let name = '';
          if (text == '1') {
            name = '是';
          } else {
            name = '否';
          }
          return (
            <>
              {disabled ? (
                <span style={{ paddingLeft: 8 }}>{name}</span>
              ) : (
                <TagSelect
                  colSpan={24}
                  formLabel={''}
                  formName={'templateFlag'}
                  defalultKeys={Number(text)}
                  onChange={(value) => {
                    changeRadio(value, 'templateFlag');
                  }}
                  radioList={[
                    {
                      value: 1,
                      name: '是',
                    },
                    {
                      value: 0,
                      name: '否',
                    },
                  ]}
                  radioDisabled={disabled}
                />
              )}
            </>
          );
        },
      },
      {
        label: '合同范本',
        field: 'contract',
        component: 'Input',
        placeholder: '请选择合同范本',
        message: '请选择合同范本',
        disabled: true,
        required: true,
        colSpan: Number(radioState.templateFlag) == 1 ? 2 : 0,
        contentAfter: (
          <a
            onClick={() => {
              setIsShow(true);
            }}
          >
            <SearchOutlined />
          </a>
        ),
      },
      {
        label: '合同文本',
        field: 'contractURL',
        component: 'Render',
        required: true,
        colSpan: Number(radioState.templateFlag) == 0 ? 2 : radioState?.templateFlag == undefined ? 2 : 0,
        slotRender: (text) => {
          const fileName = 'contractURL';
          return (
            <div className="criteria-btnStyle">
              <div style={{ flex: 'auto', alignItems: 'center' }}>
                {!disabled ? (
                  <UploadFormCommon
                    form={formRef}
                    fileFormName={fileName}
                    spanCol={24}
                    inRowProportion={24}
                    name={'attachFile'}
                    required={true}
                    accept={'.doc|.docx'}
                    url={'/purchaseSourceController/uploadFile'}
                    downloadUrl={'/purchaseSourceController/downloadFile'}
                    fileFormDelName={'delFile'}
                    maxFile={1}
                    delFunc={(delFilePath: string) => {
                      handleDelFileFn(delFilePath, fileName);
                    }}
                    uploadSuccessCallback={(attachPaths) => {
                      handleAddFileFn(attachPaths, fileName);
                    }}
                    defaultFiles={text}
                    hintTitle={'且只能上传 1 个！'}
                    fieldBusiPath={'purchase/source'}
                    isShowUploadBtn={true}
                  >
                    上传
                  </UploadFormCommon>
                ) : (
                  <div
                    style={{
                      height: '100%',
                      display: 'flex',
                      alignItems: 'center',
                      marginLeft: '8px',
                    }}
                  >
                    {radioState?.[fileName]
                      ? splitFileUrl(radioState?.[fileName])?.map((e) => {
                          return (
                            <Tooltip title={e.attachName} key={new Date().getTime() * 25615265152 + e?.attachName}>
                              <a
                                onClick={() => {
                                  message.success('下载中，请稍后...');
                                  downloadTemplate('/purchaseSourceController/downloadFile', e?.attachName, e?.attachUrl, () => {});
                                }}
                              >
                                <MyIcon type="icon-file-text-fill" />
                                &nbsp;
                                {getFileNameNotType(e.attachName, 8)}
                              </a>
                            </Tooltip>
                          );
                        })
                      : '--'}
                  </div>
                )}
              </div>
              <div className="criteria-btnStyle-bottomIcon">
                <a onClick={() => {}}>
                  <Tooltip title={`下载模板`}>
                    <VerticalAlignBottomOutlined />
                  </Tooltip>
                </a>
              </div>
            </div>
          );
        },
      },
      {
        label: '采购需求',
        field: 'needFileURL',
        component: 'Render',
        colSpan: 2,
        slotRender: (text) => {
          const fileName = 'needFileURL';
          return (
            <>
              {!disabled ? (
                <UploadFormCommon
                  form={formRef}
                  fileFormName={fileName}
                  spanCol={24}
                  inRowProportion={24}
                  name={'attachFile'}
                  required={false}
                  accept={'.doc|.docx'}
                  url={'/purchaseSourceController/uploadFile'}
                  downloadUrl={'/purchaseSourceController/downloadFile'}
                  fileFormDelName={'delFile'}
                  maxFile={1}
                  delFunc={(delFilePath: string) => {
                    handleDelFileFn(delFilePath, fileName);
                  }}
                  uploadSuccessCallback={(attachPaths) => {
                    handleAddFileFn(attachPaths, fileName);
                  }}
                  defaultFiles={text}
                  hintTitle={'且只能上传 1 个！'}
                  fieldBusiPath={'purchase/source'}
                  isShowUploadBtn={true}
                >
                  上传
                </UploadFormCommon>
              ) : (
                <div
                  style={{
                    height: '100%',
                    display: 'flex',
                    alignItems: 'center',
                    marginLeft: '8px',
                  }}
                >
                  {radioState?.[fileName]
                    ? splitFileUrl(radioState?.[fileName])?.map((e) => {
                        return (
                          <Tooltip title={e.attachName} key={new Date().getTime() * 25615265152 + e?.attachName}>
                            <a
                              onClick={() => {
                                message.success('下载中，请稍后...');
                                downloadTemplate('/purchaseSourceController/downloadFile', e?.attachName, e?.attachUrl, () => {});
                              }}
                            >
                              <MyIcon type="icon-file-text-fill" />
                              &nbsp;
                              {getFileNameNotType(e.attachName, 8)}
                            </a>
                          </Tooltip>
                        );
                      })
                    : '--'}
                </div>
              )}
            </>
          );
        },
      },
      {
        label: '六、其他要求',
        field: 'evaluationTitle',
        component: 'Title',
      },
      {
        label: '是否现场考察',
        field: 'siteVisitFlag',
        component: 'Render',
        colSpan: radioState.siteVisitFlag == 0 ? 2 : 1,
        slotRender: (text: string = '0') => {
          let name = '';
          if (text == '1') {
            name = '组织';
          } else {
            name = '不组织';
          }
          return (
            <>
              {disabled ? (
                <span style={{ paddingLeft: 8 }}>{name}</span>
              ) : (
                <TagSelect
                  colSpan={24}
                  formLabel={''}
                  formName={'siteVisitFlag'}
                  onChange={(value) => {
                    changeRadio(value, 'siteVisitFlag');
                  }}
                  defalultKeys={Number(text)}
                  radioDisabled={disabled}
                  radioList={[
                    {
                      value: 1,
                      name: '组织',
                    },
                    {
                      value: 0,
                      name: '不组织',
                    },
                  ]}
                />
              )}
            </>
          );
        },
      },
      {
        label: '考察时间',
        field: 'siteVisitTime',
        placeholder: '请选择考察时间',
        component: 'Render',
        required: true,
        colSpan: radioState.siteVisitFlag == 0 ? 0 : 1,
        slotRender: (text) => {
          if (disabled) {
            return <div style={{ marginLeft: '8px' }}>{text ? moment(text)?.format('YYYY-MM-DD') : '--'}</div>;
          } else {
            return (
              <>
                <Form.Item
                  name={'siteVisitTime'}
                  rules={[
                    {
                      required: true,
                      message: '请选择考察时间',
                    },
                  ]}
                >
                  <DatePicker />
                </Form.Item>
              </>
            );
          }
        },
      },
      {
        label: '考察地点',
        field: 'siteVisitAddress',
        maxLength: 200,
        component: disabled ? 'Render' : 'InputTextArea',
        slotRender: (text) => {
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>暂无</span>;
          }
        },
        allowClear: true,
        autoSize: { minRows: 3, maxRows: 4 },
        showCount: true,
        required: true,
        colSpan: radioState.siteVisitFlag == 0 ? 0 : 2,
        disabled,
      },
      {
        label: '开标前答疑会',
        field: 'meetFlag',
        component: 'Render',
        colSpan: radioState.meetFlag == 0 ? 2 : 1,
        slotRender: (text: string = '0') => {
          let name = '';
          if (text == '1') {
            name = '召开';
          } else {
            name = '不召开';
          }

          return (
            <>
              {disabled ? (
                <span style={{ paddingLeft: 8 }}>{name}</span>
              ) : (
                <TagSelect
                  colSpan={24}
                  formLabel={''}
                  formName={'meetFlag'}
                  onChange={(value) => {
                    changeRadio(value, 'meetFlag');
                  }}
                  radioDisabled={disabled}
                  defalultKeys={Number(text)}
                  radioList={[
                    {
                      value: 1,
                      name: '召开',
                    },
                    {
                      value: 0,
                      name: '不召开',
                    },
                  ]}
                />
              )}
            </>
          );
        },
      },
      {
        label: '召开时间',
        field: 'meetTime',
        placeholder: '请选择召开时间',
        component: 'Render',
        required: true,
        colSpan: radioState.meetFlag == 0 ? 0 : 1,
        slotRender: (text) => {
          if (disabled) {
            return <div style={{ marginLeft: '8px' }}>{text ? moment(text)?.format('YYYY-MM-DD') : '--'}</div>;
          } else {
            return (
              <>
                <Form.Item name={'meetTime'} rules={[{ required: true, message: '请选择召开时间' }]}>
                  <DatePicker />
                </Form.Item>
              </>
            );
          }
        },
      },
      {
        label: '召开地点',
        field: 'meetAddress',
        maxLength: 200,
        component: disabled ? 'Render' : 'InputTextArea',
        slotRender: (text) => {
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>暂无</span>;
          }
        },
        allowClear: true,
        autoSize: { minRows: 3, maxRows: 4 },
        showCount: true,
        required: true,
        disabled,
        colSpan: radioState.meetFlag == 0 ? 0 : 2,
      },
      {
        label: '履约保证金',
        field: 'bidMarginFlag',
        component: 'Render',
        colSpan: 2,
        slotRender: (text: string = '1') => {
          let name = '';
          if (text == '1') {
            name = '缴纳';
          } else {
            name = '不缴纳';
          }
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>{name}</span>;
          } else {
            return (
              <TagSelect
                colSpan={24}
                formLabel={''}
                formName={'bidMarginFlag'}
                onChange={(value) => {
                  changeRadio(value, 'bidMarginFlag');
                }}
                defalultKeys={Number(text)}
                radioDisabled={disabled}
                radioList={[
                  {
                    value: 1,
                    name: '缴纳',
                  },
                  {
                    value: 0,
                    name: '不缴纳',
                  },
                ]}
              />
            );
          }
        },
      },
      {
        label: '合同金额的',
        field: 'bidMargin',
        component: 'InputNumber',
        type: 'number',
        placeholder: '不得超过10%',
        contentAfter: '%',
        min: 0,
        max: 10,
        step: '0.01',
        required: true,
        colSpan: radioState?.bidMarginFlag == 0 || radioState?.bidMarginFlag == null ? 0 : 1,
        disabled,
      },
      // {
      //   label: '缴纳时间',
      //   field: 'bidMarginTime',
      //   placeholder: '请选择缴纳时间',
      //   component: 'Render',
      //   required: true,
      //   colSpan: radioState?.bidMarginFlag == 0 || radioState?.bidMarginFlag == null ? 0 : 1,
      //   slotRender: (text) => {
      //     if (disabled) {
      //       return <div style={{ marginLeft: '8px' }}>{text ? moment(text)?.format('YYYY-MM-DD') : '--'}</div>;
      //     } else {
      //       return (
      //         <>
      //           <Form.Item
      //             name={'bidMarginTime'}
      //             rules={[
      //               {
      //                 required: true,
      //                 message: '请选择缴纳时间',
      //               },
      //             ]}
      //           >
      //             <DatePicker />
      //           </Form.Item>
      //         </>
      //       );
      //     }
      //   },
      // },
      {
        label: '缴纳时间',
        field: 'bidMarginTime',
        placeholder: '请选择',
        component: 'Render',
        required: true,
        colSpan: radioState?.bidMarginFlag == 0 || radioState?.bidMarginFlag == null ? 0 : 1,
        ishidden: tableType == KJXYCG() || radioState?.bidMarginFlag == 0 || radioState?.bidMarginFlag == null ? true : false,
        slotRender: (text, record) => {
          if (disabled) {
            return <div style={{ marginLeft: '8px' }}>{text ? text : <span style={{ color: '#ccc' }}>--</span>}</div>;
          } else {
            return (
              <>
                <Form.Item
                  name={'bidMarginTime'}
                  rules={[
                    {
                      required: true,
                      message: '请输入',
                    },
                  ]}
                >
                  <Input placeholder="请输入缴纳时间" />
                </Form.Item>
              </>
            );
          }
        },
      },
      {
        label: (
          <div>
            <span>七、正式招标文件</span>
            <span style={{ color: 'red', fontSize: '14px' }}>（采购文件定稿后上传）</span>
          </div>
        ),
        field: 'documentsTitle',
        component: 'Title',
      },
      {
        label: '正式采购文件',
        field: 'busiFileURL',
        component: 'Render',
        colSpan: 2,
        slotRender: (text) => {
          const fileName = 'busiFileURL';
          return (
            <>
              {!disabled ? (
                <UploadFormCommon
                  form={formRef}
                  fileFormName={fileName}
                  spanCol={24}
                  inRowProportion={24}
                  name={'attachFile'}
                  required={false}
                  accept={'.doc|.docx'}
                  url={'/purchaseSourceController/uploadFile'}
                  downloadUrl={'/purchaseSourceController/downloadFile'}
                  fileFormDelName={'delFile'}
                  maxFile={1}
                  delFunc={(delFilePath: string) => {
                    handleDelFileFn(delFilePath, fileName);
                  }}
                  uploadSuccessCallback={(attachPaths) => {
                    handleAddFileFn(attachPaths, fileName);
                  }}
                  defaultFiles={text}
                  hintTitle={'且只能上传 1 个！'}
                  fieldBusiPath={'purchase/source'}
                  isShowUploadBtn={true}
                >
                  上传
                </UploadFormCommon>
              ) : (
                <div
                  style={{
                    height: '100%',
                    display: 'flex',
                    alignItems: 'center',
                    marginLeft: '8px',
                  }}
                >
                  {radioState?.[fileName]
                    ? splitFileUrl(radioState?.[fileName])?.map((e) => {
                        return (
                          <Tooltip title={e.attachName} key={new Date().getTime() * 25615265152 + e?.attachName}>
                            <a
                              onClick={() => {
                                message.success('下载中，请稍后...');
                                downloadTemplate('/purchaseSourceController/downloadFile', e?.attachName, e?.attachUrl, () => {});
                              }}
                            >
                              <MyIcon type="icon-file-text-fill" />
                              &nbsp;
                              {getFileNameNotType(e.attachName, 8)}
                            </a>
                          </Tooltip>
                        );
                      })
                    : '--'}
                </div>
              )}
            </>
          );
        },
      },
      {
        label: '招标文件',
        field: 'bidFileURL',
        component: 'Render',
        colSpan: 2,
        slotRender: (text) => {
          const fileName = 'bidFileURL';
          return (
            <>
              {!disabled ? (
                <UploadFormCommon
                  form={formRef}
                  fileFormName={fileName}
                  spanCol={24}
                  inRowProportion={24}
                  name={'attachFile'}
                  required={false}
                  accept={'.doc|.docx'}
                  url={'/purchaseSourceController/uploadFile'}
                  downloadUrl={'/purchaseSourceController/downloadFile'}
                  fileFormDelName={'delFile'}
                  maxFile={1}
                  delFunc={(delFilePath: string) => {
                    handleDelFileFn(delFilePath, fileName);
                  }}
                  uploadSuccessCallback={(attachPaths) => {
                    handleAddFileFn(attachPaths, fileName);
                  }}
                  defaultFiles={text}
                  hintTitle={'且只能上传 1 个！'}
                  fieldBusiPath={'purchase/source'}
                  isShowUploadBtn={true}
                >
                  上传
                </UploadFormCommon>
              ) : (
                <div
                  style={{
                    height: '100%',
                    display: 'flex',
                    alignItems: 'center',
                    marginLeft: '8px',
                  }}
                >
                  {radioState?.[fileName]
                    ? splitFileUrl(radioState?.[fileName])?.map((e) => {
                        return (
                          <Tooltip title={e.attachName} key={new Date().getTime() * 25615265152 + e?.attachName}>
                            <a
                              onClick={() => {
                                message.success('下载中，请稍后...');
                                downloadTemplate('/purchaseSourceController/downloadFile', e?.attachName, e?.attachUrl, () => {});
                              }}
                            >
                              <MyIcon type="icon-file-text-fill" />
                              &nbsp;
                              {getFileNameNotType(e.attachName, 8)}
                            </a>
                          </Tooltip>
                        );
                      })
                    : '--'}
                </div>
              )}
            </>
          );
        },
      },
    ];
  } else if (tableType == JZXTP()) {
    // 4
    return [
      {
        label: '一、基本信息',
        field: 'baseInfoTitle',
        component: 'Title',
      },
      {
        label: '标包名称',
        field: 'packName',
        component: 'Input',
        disabled: true,
      },
      {
        label: '包号',
        field: 'packCode',
        component: 'Input',
        disabled: true,
      },
      {
        label: '所属行业',
        field: 'industryKind',
        component: 'Select',
        fieldNames: { label: 'name', value: 'value' },
        options: industry_involveds,
        required: true,
        disabled,
      },
      {
        label: '项目属性',
        field: 'supplyType',
        component: 'Render',
        slotRender: (text) => {
          let name = '';
          if (text == `${getTenantID()}${ILoadMapTypeAll?.PURCHASE_CATEGORY}1000`) {
            text = '1';
            name = '货物类';
          } else {
            text = '0';
            name = '服务类';
          }
          return (
            <>
              {disabled ? (
                <span style={{ paddingLeft: 8 }}>{name}</span>
              ) : (
                <TagSelect colSpan={24} formLabel={''} formName={'supplyType'} defalultKeys={text} radioList={supplyTypeList} radioDisabled={true} />
              )}
            </>
          );
        },
      },
      {
        label: '预算金额',
        field: 'expectSum',
        component: 'InputNumber',
        formatter: (value: number) => {
          if (value) {
            return Number(value).toFixed(2);
          }
        },
        contentAfter: '元',
        disabled: true,
      },
      {
        label: '最高限价',
        field: 'expectCeilSum',
        component: 'InputNumber',
        formatter: (value: number) => {
          if (value) {
            return Number(value).toFixed(2);
          }
        },
        min: 1,
        contentAfter: '元',
        disabled,
        required: true,
      },
      {
        label: '拟采用采购方式',
        field: 'procureReal',
        component: 'Input',
        disabled: true,
      },
      {
        label: '投标有效期',
        field: disabled ? 'Render' : 'bidPeriodDay',
        placeholder: '请选择投标有效期',
        component: 'Render',
        required: true,
        slotRender: (text) => {
          return (
            <>
              <div className="criteria-btnStyle">
                <div style={{ flex: 'auto', alignItems: 'center' }}>
                  {disabled ? (
                    <div
                      className={'formItem-bidPeriodDay'}
                      style={{ paddingLeft: 8, display: 'flex', alignItems: 'center', overflow: 'hidden', height: '100%' }}
                    >
                      <span>{infoState?.bidPeriodDay || '--'}</span>
                    </div>
                  ) : (
                    <Form.Item
                      name={'bidPeriodDay'}
                      className={'formItem-bidPeriodDay'}
                      rules={[
                        {
                          required: true,
                          message: '请选择投标有效期',
                        },
                        {
                          pattern: RegularExpression.integerNumber,
                          message: '输入的投标有效期必须是正整数',
                        },
                      ]}
                    >
                      <AutoComplete
                        value={text}
                        disabled={disabled}
                        placeholder="请选择/输入投标有效期"
                        defaultValue={'60'}
                        options={[
                          {
                            label: '60',
                            value: '60',
                          },
                          {
                            label: '90',
                            value: '90',
                          },
                          {
                            label: '120',
                            value: '120',
                          },
                        ]}
                      />
                    </Form.Item>
                  )}
                </div>
                <div className="criteria-btnStyle-bottomIcon">日</div>
              </div>
            </>
          );
          // }
        },
      },
      {
        label: '是否科研仪器设备',
        field: 'sciequipFlag',
        component: 'Render',
        colSpan: radioState?.supplyType == 0 ? 1 : 0,
        required: true,
        slotRender: (text: string = '0') => {
          let name = '';
          if (text == '1') {
            name = '是';
          } else {
            name = '否';
          }

          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>{name}</span>;
          } else {
            return (
              <TagSelect
                colSpan={24}
                formLabel={''}
                formName={'sciequipFlag'}
                defalultKeys={Number(text)}
                radioList={[
                  {
                    value: 1,
                    name: '是',
                  },
                  {
                    value: 0,
                    name: '否',
                  },
                ]}
                radioDisabled={disabled}
              />
            );
          }
        },
      },
      {
        label: '是否接受进口',
        field: 'importFlag',
        component: 'Render',
        colSpan: radioState?.supplyType == 0 ? 1 : 0,
        required: true,
        slotRender: (text: string = '0', record: Record<string, any>) => {
          let name = '';
          if (text == '1') {
            name = '是';
          } else {
            name = '否';
          }

          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>{name}</span>;
          } else {
            return (
              <TagSelect
                colSpan={24}
                formLabel={''}
                formName={'importFlag'}
                defalultKeys={Number(text)}
                radioList={[
                  {
                    value: 1,
                    name: '是',
                  },
                  {
                    value: 0,
                    name: '否',
                  },
                ]}
                radioDisabled={disabled}
              />
            );
          }
        },
      },
      {
        label: '是否单一产品采购项目',
        field: 'productFlag',
        component: 'Render',
        required: true,
        colSpan: radioState?.supplyType == 0 ? (radioState.productFlag == 0 || radioState.productFlag == null ? 2 : 1) : 0,
        slotRender: (text: any = 0) => {
          let name = '';
          if (text == '1') {
            name = '是';
          } else {
            name = '否';
          }
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>{name}</span>;
          } else {
            return (
              <TagSelect
                colSpan={24}
                formLabel={''}
                formName={'productFlag'}
                onChange={(value) => {
                  changeRadio(value, 'productFlag');
                }}
                defalultKeys={Number(text)}
                radioList={[
                  {
                    value: 1,
                    name: '是',
                  },
                  {
                    value: 0,
                    name: '否',
                  },
                ]}
                radioDisabled={disabled}
              />
            );
          }
        },
      },
      {
        label: '核心产品',
        field: 'productName',
        component: 'Input',
        disabled,
        required: true,
        colSpan: radioState?.supplyType == 0 ? (radioState.productFlag == 0 || radioState.productFlag == null ? 0 : 1) : 0,
      },
      {
        label: '二、分包要求',
        field: 'packTitle',
        component: 'Title',
      },
      {
        label: '分包',
        field: 'packFlag',
        component: 'Render',
        colSpan: 2,
        slotRender: (text: string = '0') => {
          let name = '';
          if (text == '1') {
            name = '允许';
          } else {
            name = '不允许';
          }

          return (
            <>
              {disabled ? (
                <span style={{ paddingLeft: 8 }}>{name}</span>
              ) : (
                <TagSelect
                  colSpan={24}
                  formLabel={''}
                  formName={'packFlag'}
                  onChange={(value) => {
                    changeRadio(value, 'packFlag');
                  }}
                  radioDisabled={disabled}
                  defalultKeys={Number(text)}
                  radioList={[
                    {
                      value: 1,
                      name: '允许',
                    },
                    {
                      value: 0,
                      name: '不允许',
                    },
                  ]}
                />
              )}
            </>
          );
        },
      },
      {
        label: '允许分包的比例',
        field: 'packScale',
        component: 'InputNumber',
        type: 'number',
        min: 0,
        max: 100,
        step: '0.01',
        colSpan: radioState.packFlag == 0 ? 0 : 1,
        contentAfter: '%',
        disabled,
        required: true,
      },
      {
        label: '允许分包的金额',
        field: 'packScale1',
        component: 'Render',
        placeholder: '根据分包比例自动算出',
        disabled: true,
        colSpan: radioState.packFlag == 0 ? 0 : 1,
        contentAfter: '元',
        slotRender: (text, record) => {
          return <div style={{ marginLeft: '8px' }}>{calculate(Number(record?.expectSum), Number(record?.packScale))}</div>;
        },
        required: true,
      },
      {
        label: '可以分包履行的具体内容',
        field: 'packContent',
        component: disabled ? 'Render' : 'InputTextArea',
        slotRender: (text) => {
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>暂无</span>;
          }
        },
        maxLength: 200,
        allowClear: true,
        autoSize: { minRows: 3, maxRows: 4 },
        showCount: true,
        colSpan: radioState.packFlag == 0 ? 0 : 2,
        disabled,
        required: true,
      },
      {
        label: '分包其他要求',
        field: 'packOther',
        colSpan: radioState.packFlag == 0 ? 0 : 2,
        component: disabled ? 'Render' : 'InputTextArea',
        slotRender: (text) => {
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>暂无</span>;
          }
        },
        maxLength: 200,
        allowClear: true,
        autoSize: { minRows: 3, maxRows: 4 },
        showCount: true,
        disabled,
        required: true,
      },
      {
        label: '三、投标人/供应商要求',
        field: 'requirementsTitle',
        component: 'Title',
      },
      {
        label: '是否接受联合体',
        field: 'complexFlag',
        component: 'Render',
        colSpan: 2,
        required: true,
        slotRender: (text: string = '0') => {
          let name = '';
          if (text == '1') {
            name = '是';
          } else {
            name = '否';
          }
          return (
            <>
              {disabled ? (
                <span style={{ paddingLeft: 8 }}>{name}</span>
              ) : (
                <TagSelect
                  colSpan={24}
                  formLabel={''}
                  formName={'complexFlag'}
                  defalultKeys={Number(text)}
                  radioList={[
                    {
                      value: 1,
                      name: '是',
                    },
                    {
                      value: 0,
                      name: '否',
                    },
                  ]}
                  radioDisabled={disabled}
                />
              )}
            </>
          );
        },
      },
      {
        label: '投标人特定资格要求',
        field: 'sourceContent',
        component: disabled ? 'Render' : 'InputTextArea',
        maxLength: 200,
        allowClear: true,
        autoSize: { minRows: 3, maxRows: 4 },
        showCount: true,
        colSpan: 2,
        disabled,
        required: true,
        slotRender: (text) => {
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>暂无</span>;
          }
        },
      },
      {
        label: '四、采购需求及合同范本',
        field: 'requirements',
        component: 'Title',
      },
      {
        label: '统一合同范本',
        field: 'templateFlag',
        component: 'Render',
        colSpan: 2,
        slotRender: (text: string = '0') => {
          let name = '';
          if (text == '1') {
            name = '是';
          } else {
            name = '否';
          }
          return (
            <>
              {disabled ? (
                <span style={{ paddingLeft: 8 }}>{name}</span>
              ) : (
                <TagSelect
                  colSpan={24}
                  formLabel={''}
                  formName={'templateFlag'}
                  defalultKeys={Number(text)}
                  onChange={(value) => {
                    changeRadio(value, 'templateFlag');
                  }}
                  radioList={[
                    {
                      value: 1,
                      name: '是',
                    },
                    {
                      value: 0,
                      name: '否',
                    },
                  ]}
                  radioDisabled={disabled}
                />
              )}
            </>
          );
        },
      },
      {
        label: '合同范本',
        field: 'contract',
        component: 'Input',
        placeholder: '请选择合同范本',
        message: '请选择合同范本',
        disabled: true,
        required: true,
        colSpan: Number(radioState.templateFlag) == 1 ? 2 : 0,
        contentAfter: (
          <a
            onClick={() => {
              setIsShow(true);
            }}
          >
            <SearchOutlined />
          </a>
        ),
      },
      {
        label: '合同文本',
        field: 'contractURL',
        component: 'Render',
        required: true,
        colSpan: Number(radioState.templateFlag) == 0 ? 2 : radioState?.templateFlag == undefined ? 2 : 0,
        slotRender: (text) => {
          const fileName = 'contractURL';
          return (
            <div className="criteria-btnStyle">
              <div style={{ flex: 'auto', alignItems: 'center' }}>
                {!disabled ? (
                  <UploadFormCommon
                    form={formRef}
                    fileFormName={fileName}
                    spanCol={24}
                    inRowProportion={24}
                    name={'attachFile'}
                    required={true}
                    accept={'.doc|.docx'}
                    url={'/purchaseSourceController/uploadFile'}
                    downloadUrl={'/purchaseSourceController/downloadFile'}
                    fileFormDelName={'delFile'}
                    maxFile={1}
                    delFunc={(delFilePath: string) => {
                      handleDelFileFn(delFilePath, fileName);
                    }}
                    uploadSuccessCallback={(attachPaths) => {
                      handleAddFileFn(attachPaths, fileName);
                    }}
                    defaultFiles={text}
                    hintTitle={'且只能上传 1 个！'}
                    fieldBusiPath={'purchase/source'}
                    isShowUploadBtn={true}
                  >
                    上传
                  </UploadFormCommon>
                ) : (
                  <div
                    style={{
                      height: '100%',
                      display: 'flex',
                      alignItems: 'center',
                      marginLeft: '8px',
                    }}
                  >
                    {radioState?.[fileName]
                      ? splitFileUrl(radioState?.[fileName])?.map((e) => {
                          return (
                            <Tooltip title={e.attachName} key={new Date().getTime() * 25615265152 + e?.attachName}>
                              <a
                                onClick={() => {
                                  message.success('下载中，请稍后...');
                                  downloadTemplate('/purchaseSourceController/downloadFile', e?.attachName, e?.attachUrl, () => {});
                                }}
                              >
                                <MyIcon type="icon-file-text-fill" />
                                &nbsp;
                                {getFileNameNotType(e.attachName, 8)}
                              </a>
                            </Tooltip>
                          );
                        })
                      : '--'}
                  </div>
                )}
              </div>
              <div className="criteria-btnStyle-bottomIcon">
                <a onClick={() => {}}>
                  <Tooltip title={`下载模板`}>
                    <VerticalAlignBottomOutlined />
                  </Tooltip>
                </a>
              </div>
            </div>
          );
        },
      },
      {
        label: '采购需求',
        field: 'needFileURL',
        component: 'Render',
        colSpan: 2,
        slotRender: (text) => {
          const fileName = 'needFileURL';
          return (
            <>
              {!disabled ? (
                <UploadFormCommon
                  form={formRef}
                  fileFormName={fileName}
                  spanCol={24}
                  inRowProportion={24}
                  name={'attachFile'}
                  required={false}
                  accept={'.doc|.docx'}
                  url={'/purchaseSourceController/uploadFile'}
                  downloadUrl={'/purchaseSourceController/downloadFile'}
                  fileFormDelName={'delFile'}
                  maxFile={1}
                  delFunc={(delFilePath: string) => {
                    handleDelFileFn(delFilePath, fileName);
                  }}
                  uploadSuccessCallback={(attachPaths) => {
                    handleAddFileFn(attachPaths, fileName);
                  }}
                  defaultFiles={text}
                  hintTitle={'且只能上传 1 个！'}
                  fieldBusiPath={'purchase/source'}
                  isShowUploadBtn={true}
                >
                  上传
                </UploadFormCommon>
              ) : (
                <div
                  style={{
                    height: '100%',
                    display: 'flex',
                    alignItems: 'center',
                    marginLeft: '8px',
                  }}
                >
                  {radioState?.[fileName]
                    ? splitFileUrl(radioState?.[fileName])?.map((e) => {
                        return (
                          <Tooltip title={e.attachName} key={new Date().getTime() * 25615265152 + e?.attachName}>
                            <a
                              onClick={() => {
                                message.success('下载中，请稍后...');
                                downloadTemplate('/purchaseSourceController/downloadFile', e?.attachName, e?.attachUrl, () => {});
                              }}
                            >
                              <MyIcon type="icon-file-text-fill" />
                              &nbsp;
                              {getFileNameNotType(e.attachName, 8)}
                            </a>
                          </Tooltip>
                        );
                      })
                    : '--'}
                </div>
              )}
            </>
          );
        },
      },
      {
        label: '五、其他要求',
        field: 'otherInfo',
        component: 'Title',
      },
      {
        label: '履约保证金',
        field: 'bidMarginFlag',
        component: 'Render',
        colSpan: 2,
        slotRender: (text: string = '1') => {
          let name = '';
          if (text == '1') {
            name = '缴纳';
          } else {
            name = '不缴纳';
          }
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>{name}</span>;
          } else {
            return (
              <TagSelect
                colSpan={24}
                formLabel={''}
                formName={'bidMarginFlag'}
                onChange={(value) => {
                  changeRadio(value, 'bidMarginFlag');
                }}
                defalultKeys={Number(text)}
                radioDisabled={disabled}
                radioList={[
                  {
                    value: 1,
                    name: '缴纳',
                  },
                  {
                    value: 0,
                    name: '不缴纳',
                  },
                ]}
              />
            );
          }
        },
      },
      {
        label: '合同金额的',
        field: 'bidMargin',
        component: 'InputNumber',
        type: 'number',
        placeholder: '不得超过10%',
        contentAfter: '%',
        min: 0,
        max: 10,
        step: '0.01',
        required: true,
        colSpan: radioState?.bidMarginFlag == 0 || radioState?.bidMarginFlag == null ? 0 : 1,
        disabled,
      },
      // {
      //   label: '缴纳时间',
      //   field: 'bidMarginTime',
      //   placeholder: '请选择缴纳时间',
      //   component: 'Render',
      //   required: true,
      //   colSpan: radioState?.bidMarginFlag == 0 || radioState?.bidMarginFlag == null ? 0 : 1,
      //   slotRender: (text) => {
      //     if (disabled) {
      //       return <div style={{ marginLeft: '8px' }}>{text ? moment(text)?.format('YYYY-MM-DD') : '--'}</div>;
      //     } else {
      //       return (
      //         <>
      //           <Form.Item
      //             name={'bidMarginTime'}
      //             rules={[
      //               {
      //                 required: true,
      //                 message: '请选择缴纳时间',
      //               },
      //             ]}
      //           >
      //             <DatePicker />
      //           </Form.Item>
      //         </>
      //       );
      //     }
      //   },
      // },
      {
        label: '缴纳时间',
        field: 'bidMarginTime',
        placeholder: '请选择',
        component: 'Render',
        required: true,
        colSpan: radioState?.bidMarginFlag == 0 || radioState?.bidMarginFlag == null ? 0 : 1,
        ishidden: tableType == KJXYCG() || radioState?.bidMarginFlag == 0 || radioState?.bidMarginFlag == null ? true : false,
        slotRender: (text, record) => {
          if (disabled) {
            return <div style={{ marginLeft: '8px' }}>{text ? text : <span style={{ color: '#ccc' }}>--</span>}</div>;
          } else {
            return (
              <>
                <Form.Item
                  name={'bidMarginTime'}
                  rules={[
                    {
                      required: true,
                      message: '请输入',
                    },
                  ]}
                >
                  <Input placeholder="请输入缴纳时间" />
                </Form.Item>
              </>
            );
          }
        },
      },
      {
        label: (
          <div>
            <span>六、正式招标文件</span>
            <span style={{ color: 'red', fontSize: '14px' }}>（采购文件定稿后上传）</span>
          </div>
        ),
        field: 'documentsTitle',
        component: 'Title',
      },
      {
        label: '正式采购文件',
        field: 'busiFileURL',
        component: 'Render',
        colSpan: 2,
        slotRender: (text) => {
          const fileName = 'busiFileURL';
          return (
            <>
              {!disabled ? (
                <UploadFormCommon
                  form={formRef}
                  fileFormName={fileName}
                  spanCol={24}
                  inRowProportion={24}
                  name={'attachFile'}
                  required={false}
                  accept={'.doc|.docx'}
                  url={'/purchaseSourceController/uploadFile'}
                  downloadUrl={'/purchaseSourceController/downloadFile'}
                  fileFormDelName={'delFile'}
                  maxFile={1}
                  delFunc={(delFilePath: string) => {
                    handleDelFileFn(delFilePath, fileName);
                  }}
                  uploadSuccessCallback={(attachPaths) => {
                    handleAddFileFn(attachPaths, fileName);
                  }}
                  defaultFiles={text}
                  hintTitle={'且只能上传 1 个！'}
                  fieldBusiPath={'purchase/source'}
                  isShowUploadBtn={true}
                >
                  上传
                </UploadFormCommon>
              ) : (
                <div
                  style={{
                    height: '100%',
                    display: 'flex',
                    alignItems: 'center',
                    marginLeft: '8px',
                  }}
                >
                  {radioState?.[fileName]
                    ? splitFileUrl(radioState?.[fileName])?.map((e) => {
                        return (
                          <Tooltip title={e.attachName} key={new Date().getTime() * 25615265152 + e?.attachName}>
                            <a
                              onClick={() => {
                                message.success('下载中，请稍后...');
                                downloadTemplate('/purchaseSourceController/downloadFile', e?.attachName, e?.attachUrl, () => {});
                              }}
                            >
                              <MyIcon type="icon-file-text-fill" />
                              &nbsp;
                              {getFileNameNotType(e.attachName, 8)}
                            </a>
                          </Tooltip>
                        );
                      })
                    : '--'}
                </div>
              )}
            </>
          );
        },
      },
      {
        label: '招标文件',
        field: 'bidFileURL',
        component: 'Render',
        colSpan: 2,
        slotRender: (text) => {
          const fileName = 'bidFileURL';
          return (
            <>
              {!disabled ? (
                <UploadFormCommon
                  form={formRef}
                  fileFormName={fileName}
                  spanCol={24}
                  inRowProportion={24}
                  name={'attachFile'}
                  required={false}
                  accept={'.doc|.docx'}
                  url={'/purchaseSourceController/uploadFile'}
                  downloadUrl={'/purchaseSourceController/downloadFile'}
                  fileFormDelName={'delFile'}
                  maxFile={1}
                  delFunc={(delFilePath: string) => {
                    handleDelFileFn(delFilePath, fileName);
                  }}
                  uploadSuccessCallback={(attachPaths) => {
                    handleAddFileFn(attachPaths, fileName);
                  }}
                  defaultFiles={text}
                  hintTitle={'且只能上传 1 个！'}
                  fieldBusiPath={'purchase/source'}
                  isShowUploadBtn={true}
                >
                  上传
                </UploadFormCommon>
              ) : (
                <div
                  style={{
                    height: '100%',
                    display: 'flex',
                    alignItems: 'center',
                    marginLeft: '8px',
                  }}
                >
                  {radioState?.[fileName]
                    ? splitFileUrl(radioState?.[fileName])?.map((e) => {
                        return (
                          <Tooltip title={e.attachName} key={new Date().getTime() * 25615265152 + e?.attachName}>
                            <a
                              onClick={() => {
                                message.success('下载中，请稍后...');
                                downloadTemplate('/purchaseSourceController/downloadFile', e?.attachName, e?.attachUrl, () => {});
                              }}
                            >
                              <MyIcon type="icon-file-text-fill" />
                              &nbsp;
                              {getFileNameNotType(e.attachName, 8)}
                            </a>
                          </Tooltip>
                        );
                      })
                    : '--'}
                </div>
              )}
            </>
          );
        },
      },
    ];
  } else if (tableType == XJCG()) {
    // 5
    return [
      {
        label: '一、基本信息',
        field: 'baseInfoTitle',
        component: 'Title',
      },
      {
        label: '标包名称',
        field: 'packName',
        component: 'Input',
        disabled: true,
      },
      {
        label: '包号',
        field: 'packCode',
        component: 'Input',
        disabled: true,
      },
      {
        label: '所属行业',
        field: 'industryKind',
        component: 'Select',
        fieldNames: { label: 'name', value: 'value' },
        options: industry_involveds,
        required: true,
        disabled,
      },
      {
        label: '项目属性',
        field: 'supplyType',
        component: 'Render',
        slotRender: (text) => {
          let name = '';
          if (text == `${getTenantID()}${ILoadMapTypeAll?.PURCHASE_CATEGORY}1000`) {
            text = '1';
            name = '货物类';
          } else {
            text = '0';
            name = '服务类';
          }
          return (
            <>
              {disabled ? (
                <span style={{ paddingLeft: 8 }}>{name}</span>
              ) : (
                <TagSelect colSpan={24} formLabel={''} formName={'supplyType'} defalultKeys={text} radioList={supplyTypeList} radioDisabled={true} />
              )}
            </>
          );
        },
      },
      {
        label: '预算金额',
        field: 'expectSum',
        component: 'InputNumber',
        formatter: (value: number) => {
          if (value) {
            return Number(value).toFixed(2);
          }
        },
        contentAfter: '元',
        disabled: true,
      },
      {
        label: '最高限价',
        field: 'expectCeilSum',
        component: 'InputNumber',
        formatter: (value: number) => {
          if (value) {
            return Number(value).toFixed(2);
          }
        },
        min: 1,
        contentAfter: '元',
        disabled,
        required: true,
      },
      {
        label: '拟采用采购方式',
        field: 'procureReal',
        component: 'Input',
        disabled: true,
      },
      {
        label: '投标有效期',
        field: disabled ? 'Render' : 'bidPeriodDay',
        placeholder: '请选择投标有效期',
        component: 'Render',
        required: true,
        slotRender: (text) => {
          return (
            <>
              <div className="criteria-btnStyle">
                <div style={{ flex: 'auto', alignItems: 'center' }}>
                  {disabled ? (
                    <div
                      className={'formItem-bidPeriodDay'}
                      style={{ paddingLeft: 8, display: 'flex', alignItems: 'center', overflow: 'hidden', height: '100%' }}
                    >
                      <span>{infoState?.bidPeriodDay || '--'}</span>
                    </div>
                  ) : (
                    <Form.Item
                      name={'bidPeriodDay'}
                      className={'formItem-bidPeriodDay'}
                      rules={[
                        {
                          required: true,
                          message: '请选择投标有效期',
                        },
                        {
                          pattern: RegularExpression.integerNumber,
                          message: '输入的投标有效期必须是正整数',
                        },
                      ]}
                    >
                      <AutoComplete
                        value={text}
                        disabled={disabled}
                        placeholder="请选择/输入投标有效期"
                        defaultValue={'60'}
                        options={[
                          {
                            label: '60',
                            value: '60',
                          },
                          {
                            label: '90',
                            value: '90',
                          },
                          {
                            label: '120',
                            value: '120',
                          },
                        ]}
                      />
                    </Form.Item>
                  )}
                </div>
                <div className="criteria-btnStyle-bottomIcon">日</div>
              </div>
            </>
          );
          // }
        },
      },
      {
        label: '是否科研仪器设备',
        field: 'sciequipFlag',
        component: 'Render',
        colSpan: radioState?.supplyType == 0 ? 1 : 0,
        required: true,
        slotRender: (text: string = '0') => {
          let name = '';
          if (text == '1') {
            name = '是';
          } else {
            name = '否';
          }

          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>{name}</span>;
          } else {
            return (
              <TagSelect
                colSpan={24}
                formLabel={''}
                formName={'sciequipFlag'}
                defalultKeys={Number(text)}
                radioList={[
                  {
                    value: 1,
                    name: '是',
                  },
                  {
                    value: 0,
                    name: '否',
                  },
                ]}
                radioDisabled={disabled}
              />
            );
          }
        },
      },
      {
        label: '是否接受进口',
        field: 'importFlag',
        component: 'Render',
        colSpan: radioState?.supplyType == 0 ? 1 : 0,
        required: true,
        slotRender: (text: string = '0', record: Record<string, any>) => {
          let name = '';
          if (text == '1') {
            name = '是';
          } else {
            name = '否';
          }

          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>{name}</span>;
          } else {
            return (
              <TagSelect
                colSpan={24}
                formLabel={''}
                formName={'importFlag'}
                defalultKeys={Number(text)}
                radioList={[
                  {
                    value: 1,
                    name: '是',
                  },
                  {
                    value: 0,
                    name: '否',
                  },
                ]}
                radioDisabled={disabled}
              />
            );
          }
        },
      },
      {
        label: '是否单一产品采购项目',
        field: 'productFlag',
        component: 'Render',
        required: true,
        colSpan: radioState?.supplyType == 0 ? (radioState.productFlag == 0 || radioState.productFlag == null ? 2 : 1) : 0,
        slotRender: (text: any = 0) => {
          let name = '';
          if (text == '1') {
            name = '是';
          } else {
            name = '否';
          }
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>{name}</span>;
          } else {
            return (
              <TagSelect
                colSpan={24}
                formLabel={''}
                formName={'productFlag'}
                onChange={(value) => {
                  changeRadio(value, 'productFlag');
                }}
                defalultKeys={Number(text)}
                radioList={[
                  {
                    value: 1,
                    name: '是',
                  },
                  {
                    value: 0,
                    name: '否',
                  },
                ]}
                radioDisabled={disabled}
              />
            );
          }
        },
      },
      {
        label: '核心产品',
        field: 'productName',
        component: 'Input',
        disabled,
        required: true,
        colSpan: radioState?.supplyType == 0 ? (radioState.productFlag == 0 || radioState.productFlag == null ? 0 : 1) : 0,
      },
      {
        label: '二、分包要求',
        field: 'packTitle',
        component: 'Title',
      },
      {
        label: '分包',
        field: 'packFlag',
        component: 'Render',
        colSpan: 2,
        slotRender: (text: string = '0') => {
          let name = '';
          if (text == '1') {
            name = '允许';
          } else {
            name = '不允许';
          }

          return (
            <>
              {disabled ? (
                <span style={{ paddingLeft: 8 }}>{name}</span>
              ) : (
                <TagSelect
                  colSpan={24}
                  formLabel={''}
                  formName={'packFlag'}
                  onChange={(value) => {
                    changeRadio(value, 'packFlag');
                  }}
                  radioDisabled={disabled}
                  defalultKeys={Number(text)}
                  radioList={[
                    {
                      value: 1,
                      name: '允许',
                    },
                    {
                      value: 0,
                      name: '不允许',
                    },
                  ]}
                />
              )}
            </>
          );
        },
      },
      {
        label: '允许分包的比例',
        field: 'packScale',
        component: 'InputNumber',
        type: 'number',
        min: 0,
        max: 100,
        step: '0.01',
        colSpan: radioState.packFlag == 0 ? 0 : 1,
        contentAfter: '%',
        disabled,
        required: true,
      },
      {
        label: '允许分包的金额',
        field: 'packScale1',
        component: 'Render',
        placeholder: '根据分包比例自动算出',
        disabled: true,
        colSpan: radioState.packFlag == 0 ? 0 : 1,
        contentAfter: '元',
        slotRender: (text, record) => {
          return <div style={{ marginLeft: '8px' }}>{calculate(Number(record?.expectSum), Number(record?.packScale))}</div>;
        },
        required: true,
      },
      {
        label: '可以分包履行的具体内容',
        field: 'packContent',
        component: disabled ? 'Render' : 'InputTextArea',
        slotRender: (text) => {
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>暂无</span>;
          }
        },
        maxLength: 200,
        allowClear: true,
        autoSize: { minRows: 3, maxRows: 4 },
        showCount: true,
        colSpan: radioState.packFlag == 0 ? 0 : 2,
        disabled,
        required: true,
      },
      {
        label: '分包其他要求',
        field: 'packOther',
        colSpan: radioState.packFlag == 0 ? 0 : 2,
        component: disabled ? 'Render' : 'InputTextArea',
        slotRender: (text) => {
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>暂无</span>;
          }
        },
        maxLength: 200,
        allowClear: true,
        autoSize: { minRows: 3, maxRows: 4 },
        showCount: true,
        disabled,
        required: true,
      },
      {
        label: '三、投标人/供应商要求',
        field: 'requirementsTitle',
        component: 'Title',
      },
      {
        label: '是否接受联合体',
        field: 'complexFlag',
        component: 'Render',
        colSpan: 2,
        required: true,
        slotRender: (text: string = '0') => {
          let name = '';
          if (text == '1') {
            name = '是';
          } else {
            name = '否';
          }
          return (
            <>
              {disabled ? (
                <span style={{ paddingLeft: 8 }}>{name}</span>
              ) : (
                <TagSelect
                  colSpan={24}
                  formLabel={''}
                  formName={'complexFlag'}
                  defalultKeys={Number(text)}
                  radioList={[
                    {
                      value: 1,
                      name: '是',
                    },
                    {
                      value: 0,
                      name: '否',
                    },
                  ]}
                  radioDisabled={disabled}
                />
              )}
            </>
          );
        },
      },
      {
        label: '投标人特定资格要求',
        field: 'sourceContent',
        component: disabled ? 'Render' : 'InputTextArea',
        maxLength: 200,
        allowClear: true,
        autoSize: { minRows: 3, maxRows: 4 },
        showCount: true,
        colSpan: 2,
        disabled,
        required: true,
        slotRender: (text) => {
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>暂无</span>;
          }
        },
      },
      {
        label: '四、采购需求及合同范本',
        field: 'requirements',
        component: 'Title',
      },
      {
        label: '统一合同范本',
        field: 'templateFlag',
        component: 'Render',
        colSpan: 2,
        slotRender: (text: string = '0') => {
          let name = '';
          if (text == '1') {
            name = '是';
          } else {
            name = '否';
          }
          return (
            <>
              {disabled ? (
                <span style={{ paddingLeft: 8 }}>{name}</span>
              ) : (
                <TagSelect
                  colSpan={24}
                  formLabel={''}
                  formName={'templateFlag'}
                  defalultKeys={Number(text)}
                  onChange={(value) => {
                    changeRadio(value, 'templateFlag');
                  }}
                  radioList={[
                    {
                      value: 1,
                      name: '是',
                    },
                    {
                      value: 0,
                      name: '否',
                    },
                  ]}
                  radioDisabled={disabled}
                />
              )}
            </>
          );
        },
      },
      {
        label: '合同范本',
        field: 'contract',
        component: 'Input',
        placeholder: '请选择合同范本',
        message: '请选择合同范本',
        disabled: true,
        required: true,
        colSpan: Number(radioState.templateFlag) == 1 ? 2 : 0,
        contentAfter: (
          <a
            onClick={() => {
              setIsShow(true);
            }}
          >
            <SearchOutlined />
          </a>
        ),
      },
      {
        label: '合同文本',
        field: 'contractURL',
        component: 'Render',
        required: true,
        colSpan: Number(radioState.templateFlag) == 0 ? 2 : radioState?.templateFlag == undefined ? 2 : 0,
        slotRender: (text) => {
          const fileName = 'contractURL';
          return (
            <div className="criteria-btnStyle">
              <div style={{ flex: 'auto', alignItems: 'center' }}>
                {!disabled ? (
                  <UploadFormCommon
                    form={formRef}
                    fileFormName={fileName}
                    spanCol={24}
                    inRowProportion={24}
                    name={'attachFile'}
                    required={true}
                    accept={'.doc|.docx'}
                    url={'/purchaseSourceController/uploadFile'}
                    downloadUrl={'/purchaseSourceController/downloadFile'}
                    fileFormDelName={'delFile'}
                    maxFile={1}
                    delFunc={(delFilePath: string) => {
                      handleDelFileFn(delFilePath, fileName);
                    }}
                    uploadSuccessCallback={(attachPaths) => {
                      handleAddFileFn(attachPaths, fileName);
                    }}
                    defaultFiles={text}
                    hintTitle={'且只能上传 1 个！'}
                    fieldBusiPath={'purchase/source'}
                    isShowUploadBtn={true}
                  >
                    上传
                  </UploadFormCommon>
                ) : (
                  <div
                    style={{
                      height: '100%',
                      display: 'flex',
                      alignItems: 'center',
                      marginLeft: '8px',
                    }}
                  >
                    {radioState?.[fileName]
                      ? splitFileUrl(radioState?.[fileName])?.map((e) => {
                          return (
                            <Tooltip title={e.attachName} key={new Date().getTime() * 25615265152 + e?.attachName}>
                              <a
                                onClick={() => {
                                  message.success('下载中，请稍后...');
                                  downloadTemplate('/purchaseSourceController/downloadFile', e?.attachName, e?.attachUrl, () => {});
                                }}
                              >
                                <MyIcon type="icon-file-text-fill" />
                                &nbsp;
                                {getFileNameNotType(e.attachName, 8)}
                              </a>
                            </Tooltip>
                          );
                        })
                      : '--'}
                  </div>
                )}
              </div>
              <div className="criteria-btnStyle-bottomIcon">
                <a onClick={() => {}}>
                  <Tooltip title={`下载模板`}>
                    <VerticalAlignBottomOutlined />
                  </Tooltip>
                </a>
              </div>
            </div>
          );
        },
      },
      {
        label: '采购需求',
        field: 'needFileURL',
        component: 'Render',
        colSpan: 2,
        slotRender: (text) => {
          const fileName = 'needFileURL';
          return (
            <>
              {!disabled ? (
                <UploadFormCommon
                  form={formRef}
                  fileFormName={fileName}
                  spanCol={24}
                  inRowProportion={24}
                  name={'attachFile'}
                  required={false}
                  accept={'.doc|.docx'}
                  url={'/purchaseSourceController/uploadFile'}
                  downloadUrl={'/purchaseSourceController/downloadFile'}
                  fileFormDelName={'delFile'}
                  maxFile={1}
                  delFunc={(delFilePath: string) => {
                    handleDelFileFn(delFilePath, fileName);
                  }}
                  uploadSuccessCallback={(attachPaths) => {
                    handleAddFileFn(attachPaths, fileName);
                  }}
                  defaultFiles={text}
                  hintTitle={'且只能上传 1 个！'}
                  fieldBusiPath={'purchase/source'}
                  isShowUploadBtn={true}
                >
                  上传
                </UploadFormCommon>
              ) : (
                <div
                  style={{
                    height: '100%',
                    display: 'flex',
                    alignItems: 'center',
                    marginLeft: '8px',
                  }}
                >
                  {radioState?.[fileName]
                    ? splitFileUrl(radioState?.[fileName])?.map((e) => {
                        return (
                          <Tooltip title={e.attachName} key={new Date().getTime() * 25615265152 + e?.attachName}>
                            <a
                              onClick={() => {
                                message.success('下载中，请稍后...');
                                downloadTemplate('/purchaseSourceController/downloadFile', e?.attachName, e?.attachUrl, () => {});
                              }}
                            >
                              <MyIcon type="icon-file-text-fill" />
                              &nbsp;
                              {getFileNameNotType(e.attachName, 8)}
                            </a>
                          </Tooltip>
                        );
                      })
                    : '--'}
                </div>
              )}
            </>
          );
        },
      },
      {
        label: '五、其他要求',
        field: 'otherInfo',
        component: 'Title',
      },
      {
        label: '履约保证金',
        field: 'bidMarginFlag',
        component: 'Render',
        colSpan: 2,
        slotRender: (text: string = '1') => {
          let name = '';
          if (text == '1') {
            name = '缴纳';
          } else {
            name = '不缴纳';
          }
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>{name}</span>;
          } else {
            return (
              <TagSelect
                colSpan={24}
                formLabel={''}
                formName={'bidMarginFlag'}
                onChange={(value) => {
                  changeRadio(value, 'bidMarginFlag');
                }}
                defalultKeys={Number(text)}
                radioDisabled={disabled}
                radioList={[
                  {
                    value: 1,
                    name: '缴纳',
                  },
                  {
                    value: 0,
                    name: '不缴纳',
                  },
                ]}
              />
            );
          }
        },
      },
      {
        label: '合同金额的',
        field: 'bidMargin',
        component: 'InputNumber',
        type: 'number',
        placeholder: '不得超过10%',
        contentAfter: '%',
        min: 0,
        max: 10,
        step: '0.01',
        required: true,
        colSpan: radioState?.bidMarginFlag == 0 || radioState?.bidMarginFlag == null ? 0 : 1,
        disabled,
      },
      // {
      //   label: '缴纳时间',
      //   field: 'bidMarginTime',
      //   placeholder: '请选择缴纳时间',
      //   component: 'Render',
      //   required: true,
      //   colSpan: radioState?.bidMarginFlag == 0 || radioState?.bidMarginFlag == null ? 0 : 1,
      //   slotRender: (text) => {
      //     if (disabled) {
      //       return <div style={{ marginLeft: '8px' }}>{text ? moment(text)?.format('YYYY-MM-DD') : '--'}</div>;
      //     } else {
      //       return (
      //         <>
      //           <Form.Item
      //             name={'bidMarginTime'}
      //             rules={[
      //               {
      //                 required: true,
      //                 message: '请选择缴纳时间',
      //               },
      //             ]}
      //           >
      //             <DatePicker />
      //           </Form.Item>
      //         </>
      //       );
      //     }
      //   },
      // },
      {
        label: '缴纳时间',
        field: 'bidMarginTime',
        placeholder: '请选择',
        component: 'Render',
        required: true,
        colSpan: radioState?.bidMarginFlag == 0 || radioState?.bidMarginFlag == null ? 0 : 1,
        ishidden: tableType == KJXYCG() || radioState?.bidMarginFlag == 0 || radioState?.bidMarginFlag == null ? true : false,
        slotRender: (text, record) => {
          if (disabled) {
            return <div style={{ marginLeft: '8px' }}>{text ? text : <span style={{ color: '#ccc' }}>--</span>}</div>;
          } else {
            return (
              <>
                <Form.Item
                  name={'bidMarginTime'}
                  rules={[
                    {
                      required: true,
                      message: '请输入',
                    },
                  ]}
                >
                  <Input placeholder="请输入缴纳时间" />
                </Form.Item>
              </>
            );
          }
        },
      },
      {
        label: (
          <div>
            <span>六、正式招标文件</span>
            <span style={{ color: 'red', fontSize: '14px' }}>（采购文件定稿后上传）</span>
          </div>
        ),
        field: 'documentsTitle',
        component: 'Title',
      },
      {
        label: '正式采购文件',
        field: 'busiFileURL',
        component: 'Render',
        colSpan: 2,
        slotRender: (text) => {
          const fileName = 'busiFileURL';
          return (
            <>
              {!disabled ? (
                <UploadFormCommon
                  form={formRef}
                  fileFormName={fileName}
                  spanCol={24}
                  inRowProportion={24}
                  name={'attachFile'}
                  required={false}
                  accept={'.doc|.docx'}
                  url={'/purchaseSourceController/uploadFile'}
                  downloadUrl={'/purchaseSourceController/downloadFile'}
                  fileFormDelName={'delFile'}
                  maxFile={1}
                  delFunc={(delFilePath: string) => {
                    handleDelFileFn(delFilePath, fileName);
                  }}
                  uploadSuccessCallback={(attachPaths) => {
                    handleAddFileFn(attachPaths, fileName);
                  }}
                  defaultFiles={text}
                  hintTitle={'且只能上传 1 个！'}
                  fieldBusiPath={'purchase/source'}
                  isShowUploadBtn={true}
                >
                  上传
                </UploadFormCommon>
              ) : (
                <div
                  style={{
                    height: '100%',
                    display: 'flex',
                    alignItems: 'center',
                    marginLeft: '8px',
                  }}
                >
                  {radioState?.[fileName]
                    ? splitFileUrl(radioState?.[fileName])?.map((e) => {
                        return (
                          <Tooltip title={e.attachName} key={new Date().getTime() * 25615265152 + e?.attachName}>
                            <a
                              onClick={() => {
                                message.success('下载中，请稍后...');
                                downloadTemplate('/purchaseSourceController/downloadFile', e?.attachName, e?.attachUrl, () => {});
                              }}
                            >
                              <MyIcon type="icon-file-text-fill" />
                              &nbsp;
                              {getFileNameNotType(e.attachName, 8)}
                            </a>
                          </Tooltip>
                        );
                      })
                    : '--'}
                </div>
              )}
            </>
          );
        },
      },
      {
        label: '招标文件',
        field: 'bidFileURL',
        component: 'Render',
        colSpan: 2,
        slotRender: (text) => {
          const fileName = 'bidFileURL';
          return (
            <>
              {!disabled ? (
                <UploadFormCommon
                  form={formRef}
                  fileFormName={fileName}
                  spanCol={24}
                  inRowProportion={24}
                  name={'attachFile'}
                  required={false}
                  accept={'.doc|.docx'}
                  url={'/purchaseSourceController/uploadFile'}
                  downloadUrl={'/purchaseSourceController/downloadFile'}
                  fileFormDelName={'delFile'}
                  maxFile={1}
                  delFunc={(delFilePath: string) => {
                    handleDelFileFn(delFilePath, fileName);
                  }}
                  uploadSuccessCallback={(attachPaths) => {
                    handleAddFileFn(attachPaths, fileName);
                  }}
                  defaultFiles={text}
                  hintTitle={'且只能上传 1 个！'}
                  fieldBusiPath={'purchase/source'}
                  isShowUploadBtn={true}
                >
                  上传
                </UploadFormCommon>
              ) : (
                <div
                  style={{
                    height: '100%',
                    display: 'flex',
                    alignItems: 'center',
                    marginLeft: '8px',
                  }}
                >
                  {radioState?.[fileName]
                    ? splitFileUrl(radioState?.[fileName])?.map((e) => {
                        return (
                          <Tooltip title={e.attachName} key={new Date().getTime() * 25615265152 + e?.attachName}>
                            <a
                              onClick={() => {
                                message.success('下载中，请稍后...');
                                downloadTemplate('/purchaseSourceController/downloadFile', e?.attachName, e?.attachUrl, () => {});
                              }}
                            >
                              <MyIcon type="icon-file-text-fill" />
                              &nbsp;
                              {getFileNameNotType(e.attachName, 8)}
                            </a>
                          </Tooltip>
                        );
                      })
                    : '--'}
                </div>
              )}
            </>
          );
        },
      },
    ];
  } else if (tableType == DYLY()) {
    // 6
    return [
      {
        label: '一、基本信息',
        field: 'baseInfoTitle',
        component: 'Title',
      },
      {
        label: '标包名称',
        field: 'packName',
        component: 'Input',
        disabled: true,
      },
      {
        label: '包号',
        field: 'packCode',
        component: 'Input',
        disabled: true,
      },
      {
        label: '所属行业',
        field: 'industryKind',
        component: 'Select',
        fieldNames: { label: 'name', value: 'value' },
        options: industry_involveds,
        required: true,
        disabled,
      },
      {
        label: '项目属性',
        field: 'supplyType',
        component: 'Render',
        slotRender: (text) => {
          let name = '';
          if (text == `${getTenantID()}${ILoadMapTypeAll?.PURCHASE_CATEGORY}1000`) {
            text = '1';
            name = '货物类';
          } else {
            text = '0';
            name = '服务类';
          }
          return (
            <>
              {disabled ? (
                <span style={{ paddingLeft: 8 }}>{name}</span>
              ) : (
                <TagSelect colSpan={24} formLabel={''} formName={'supplyType'} defalultKeys={text} radioList={supplyTypeList} radioDisabled={true} />
              )}
            </>
          );
        },
      },
      {
        label: '预算金额',
        field: 'expectSum',
        component: 'InputNumber',
        formatter: (value: number) => {
          if (value) {
            return Number(value).toFixed(2);
          }
        },
        contentAfter: '元',
        disabled: true,
      },
      {
        label: '最高限价',
        field: 'expectCeilSum',
        component: 'InputNumber',
        formatter: (value: number) => {
          if (value) {
            return Number(value).toFixed(2);
          }
        },
        min: 1,
        contentAfter: '元',
        disabled,
        required: true,
      },
      {
        label: '拟采用采购方式',
        field: 'procureReal',
        component: 'Input',
        disabled: true,
      },
      {
        label: '投标有效期',
        field: disabled ? 'Render' : 'bidPeriodDay',
        placeholder: '请选择投标有效期',
        component: 'Render',
        required: true,
        slotRender: (text) => {
          return (
            <>
              <div className="criteria-btnStyle">
                <div style={{ flex: 'auto', alignItems: 'center' }}>
                  {disabled ? (
                    <div
                      className={'formItem-bidPeriodDay'}
                      style={{ paddingLeft: 8, display: 'flex', alignItems: 'center', overflow: 'hidden', height: '100%' }}
                    >
                      <span>{infoState?.bidPeriodDay || '--'}</span>
                    </div>
                  ) : (
                    <Form.Item
                      name={'bidPeriodDay'}
                      className={'formItem-bidPeriodDay'}
                      rules={[
                        {
                          required: true,
                          message: '请选择投标有效期',
                        },
                        {
                          pattern: RegularExpression.integerNumber,
                          message: '输入的投标有效期必须是正整数',
                        },
                      ]}
                    >
                      <AutoComplete
                        value={text}
                        disabled={disabled}
                        placeholder="请选择/输入投标有效期"
                        defaultValue={'60'}
                        options={[
                          {
                            label: '60',
                            value: '60',
                          },
                          {
                            label: '90',
                            value: '90',
                          },
                          {
                            label: '120',
                            value: '120',
                          },
                        ]}
                      />
                    </Form.Item>
                  )}
                </div>
                <div className="criteria-btnStyle-bottomIcon">日</div>
              </div>
            </>
          );
          // }
        },
      },
      {
        label: '是否科研仪器设备',
        field: 'sciequipFlag',
        component: 'Render',
        colSpan: radioState?.supplyType == 0 ? 1 : 0,
        required: true,
        slotRender: (text: string = '0') => {
          let name = '';
          if (text == '1') {
            name = '是';
          } else {
            name = '否';
          }

          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>{name}</span>;
          } else {
            return (
              <TagSelect
                colSpan={24}
                formLabel={''}
                formName={'sciequipFlag'}
                defalultKeys={Number(text)}
                radioList={[
                  {
                    value: 1,
                    name: '是',
                  },
                  {
                    value: 0,
                    name: '否',
                  },
                ]}
                radioDisabled={disabled}
              />
            );
          }
        },
      },
      {
        label: '是否接受进口',
        field: 'importFlag',
        component: 'Render',
        colSpan: radioState?.supplyType == 0 ? 1 : 0,
        required: true,
        slotRender: (text: string = '0', record: Record<string, any>) => {
          let name = '';
          if (text == '1') {
            name = '是';
          } else {
            name = '否';
          }

          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>{name}</span>;
          } else {
            return (
              <TagSelect
                colSpan={24}
                formLabel={''}
                formName={'importFlag'}
                defalultKeys={Number(text)}
                radioList={[
                  {
                    value: 1,
                    name: '是',
                  },
                  {
                    value: 0,
                    name: '否',
                  },
                ]}
                radioDisabled={disabled}
              />
            );
          }
        },
      },
      {
        label: '是否单一产品采购项目',
        field: 'productFlag',
        component: 'Render',
        required: true,
        colSpan: radioState?.supplyType == 0 ? (radioState.productFlag == 0 || radioState.productFlag == null ? 2 : 1) : 0,
        slotRender: (text: any = 0) => {
          let name = '';
          if (text == '1') {
            name = '是';
          } else {
            name = '否';
          }
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>{name}</span>;
          } else {
            return (
              <TagSelect
                colSpan={24}
                formLabel={''}
                formName={'productFlag'}
                onChange={(value) => {
                  changeRadio(value, 'productFlag');
                }}
                defalultKeys={Number(text)}
                radioList={[
                  {
                    value: 1,
                    name: '是',
                  },
                  {
                    value: 0,
                    name: '否',
                  },
                ]}
                radioDisabled={disabled}
              />
            );
          }
        },
      },
      {
        label: '核心产品',
        field: 'productName',
        component: 'Input',
        disabled,
        required: true,
        colSpan: radioState?.supplyType == 0 ? (radioState.productFlag == 0 || radioState.productFlag == null ? 0 : 1) : 0,
      },
      {
        label: '二、分包要求',
        field: 'packTitle',
        component: 'Title',
      },
      {
        label: '分包',
        field: 'packFlag',
        component: 'Render',
        colSpan: 2,
        slotRender: (text: string = '0') => {
          let name = '';
          if (text == '1') {
            name = '允许';
          } else {
            name = '不允许';
          }

          return (
            <>
              {disabled ? (
                <span style={{ paddingLeft: 8 }}>{name}</span>
              ) : (
                <TagSelect
                  colSpan={24}
                  formLabel={''}
                  formName={'packFlag'}
                  onChange={(value) => {
                    changeRadio(value, 'packFlag');
                  }}
                  radioDisabled={disabled}
                  defalultKeys={Number(text)}
                  radioList={[
                    {
                      value: 1,
                      name: '允许',
                    },
                    {
                      value: 0,
                      name: '不允许',
                    },
                  ]}
                />
              )}
            </>
          );
        },
      },
      {
        label: '允许分包的比例',
        field: 'packScale',
        component: 'InputNumber',
        type: 'number',
        min: 0,
        max: 100,
        step: '0.01',
        colSpan: radioState.packFlag == 0 ? 0 : 1,
        contentAfter: '%',
        disabled,
        required: true,
      },
      {
        label: '允许分包的金额',
        field: 'packScale1',
        component: 'Render',
        placeholder: '根据分包比例自动算出',
        disabled: true,
        colSpan: radioState.packFlag == 0 ? 0 : 1,
        contentAfter: '元',
        slotRender: (text, record) => {
          return <div style={{ marginLeft: '8px' }}>{calculate(Number(record?.expectSum), Number(record?.packScale))}</div>;
        },
        required: true,
      },
      {
        label: '可以分包履行的具体内容',
        field: 'packContent',
        component: disabled ? 'Render' : 'InputTextArea',
        slotRender: (text) => {
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>暂无</span>;
          }
        },
        maxLength: 200,
        allowClear: true,
        autoSize: { minRows: 3, maxRows: 4 },
        showCount: true,
        colSpan: radioState.packFlag == 0 ? 0 : 2,
        disabled,
        required: true,
      },
      {
        label: '分包其他要求',
        field: 'packOther',
        colSpan: radioState.packFlag == 0 ? 0 : 2,
        component: disabled ? 'Render' : 'InputTextArea',
        slotRender: (text) => {
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>暂无</span>;
          }
        },
        maxLength: 200,
        allowClear: true,
        autoSize: { minRows: 3, maxRows: 4 },
        showCount: true,
        disabled,
        required: true,
      },
      {
        label: '三、投标人/供应商要求',
        field: 'packTitle',
        component: 'Title',
      },
      {
        label: '供应商特定资格要求',
        field: 'sourceContent',
        component: disabled ? 'Render' : 'InputTextArea',
        slotRender: (text) => {
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>暂无</span>;
          }
        },
        maxLength: 200,
        allowClear: true,
        autoSize: { minRows: 3, maxRows: 4 },
        showCount: true,
        colSpan: 2,
        disabled,
      },
      {
        label: '四、采购需求及合同范本',
        field: 'evaluationTitle',
        component: 'Title',
      },
      {
        label: '统一合同范本',
        field: 'templateFlag',
        component: 'Render',
        colSpan: 2,
        slotRender: (text: string = '0') => {
          let name = '';
          if (text == '1') {
            name = '是';
          } else {
            name = '否';
          }
          return (
            <>
              {disabled ? (
                <span style={{ paddingLeft: 8 }}>{name}</span>
              ) : (
                <TagSelect
                  colSpan={24}
                  formLabel={''}
                  formName={'templateFlag'}
                  defalultKeys={Number(text)}
                  onChange={(value) => {
                    changeRadio(value, 'templateFlag');
                  }}
                  radioList={[
                    {
                      value: 1,
                      name: '是',
                    },
                    {
                      value: 0,
                      name: '否',
                    },
                  ]}
                  radioDisabled={disabled}
                />
              )}
            </>
          );
        },
      },
      {
        label: '合同范本',
        field: 'contract',
        component: 'Input',
        placeholder: '请选择合同范本',
        message: '请选择合同范本',
        disabled: true,
        required: true,
        colSpan: Number(radioState.templateFlag) == 1 ? 2 : 0,
        contentAfter: (
          <a
            onClick={() => {
              setIsShow(true);
            }}
          >
            <SearchOutlined />
          </a>
        ),
      },
      {
        label: '合同文本',
        field: 'contractURL',
        component: 'Render',
        required: true,
        colSpan: Number(radioState.templateFlag) == 0 ? 2 : radioState?.templateFlag == undefined ? 2 : 0,
        slotRender: (text) => {
          const fileName = 'contractURL';
          return (
            <div className="criteria-btnStyle">
              <div style={{ flex: 'auto', alignItems: 'center' }}>
                {!disabled ? (
                  <UploadFormCommon
                    form={formRef}
                    fileFormName={fileName}
                    spanCol={24}
                    inRowProportion={24}
                    name={'attachFile'}
                    required={true}
                    accept={'.doc|.docx'}
                    url={'/purchaseSourceController/uploadFile'}
                    downloadUrl={'/purchaseSourceController/downloadFile'}
                    fileFormDelName={'delFile'}
                    maxFile={1}
                    delFunc={(delFilePath: string) => {
                      handleDelFileFn(delFilePath, fileName);
                    }}
                    uploadSuccessCallback={(attachPaths) => {
                      handleAddFileFn(attachPaths, fileName);
                    }}
                    defaultFiles={text}
                    hintTitle={'且只能上传 1 个！'}
                    fieldBusiPath={'purchase/source'}
                    isShowUploadBtn={true}
                  >
                    上传
                  </UploadFormCommon>
                ) : (
                  <div
                    style={{
                      height: '100%',
                      display: 'flex',
                      alignItems: 'center',
                      marginLeft: '8px',
                    }}
                  >
                    {radioState?.[fileName]
                      ? splitFileUrl(radioState?.[fileName])?.map((e) => {
                          return (
                            <Tooltip title={e.attachName} key={new Date().getTime() * 25615265152 + e?.attachName}>
                              <a
                                onClick={() => {
                                  message.success('下载中，请稍后...');
                                  downloadTemplate('/purchaseSourceController/downloadFile', e?.attachName, e?.attachUrl, () => {});
                                }}
                              >
                                <MyIcon type="icon-file-text-fill" />
                                &nbsp;
                                {getFileNameNotType(e.attachName, 8)}
                              </a>
                            </Tooltip>
                          );
                        })
                      : '--'}
                  </div>
                )}
              </div>
              <div className="criteria-btnStyle-bottomIcon">
                <a onClick={() => {}}>
                  <Tooltip title={`下载模板`}>
                    <VerticalAlignBottomOutlined />
                  </Tooltip>
                </a>
              </div>
            </div>
          );
        },
      },
      {
        label: '采购需求',
        field: 'needFileURL',
        component: 'Render',
        colSpan: 2,
        slotRender: (text) => {
          const fileName = 'needFileURL';
          return (
            <>
              {!disabled ? (
                <UploadFormCommon
                  form={formRef}
                  fileFormName={fileName}
                  spanCol={24}
                  inRowProportion={24}
                  name={'attachFile'}
                  required={false}
                  accept={'.doc|.docx'}
                  url={'/purchaseSourceController/uploadFile'}
                  downloadUrl={'/purchaseSourceController/downloadFile'}
                  fileFormDelName={'delFile'}
                  maxFile={1}
                  delFunc={(delFilePath: string) => {
                    handleDelFileFn(delFilePath, fileName);
                  }}
                  uploadSuccessCallback={(attachPaths) => {
                    handleAddFileFn(attachPaths, fileName);
                  }}
                  defaultFiles={text}
                  hintTitle={'且只能上传 1 个！'}
                  fieldBusiPath={'purchase/source'}
                  isShowUploadBtn={true}
                >
                  上传
                </UploadFormCommon>
              ) : (
                <div
                  style={{
                    height: '100%',
                    display: 'flex',
                    alignItems: 'center',
                    marginLeft: '8px',
                  }}
                >
                  {radioState?.[fileName]
                    ? splitFileUrl(radioState?.[fileName])?.map((e) => {
                        return (
                          <Tooltip title={e.attachName} key={new Date().getTime() * 25615265152 + e?.attachName}>
                            <a
                              onClick={() => {
                                message.success('下载中，请稍后...');
                                downloadTemplate('/purchaseSourceController/downloadFile', e?.attachName, e?.attachUrl, () => {});
                              }}
                            >
                              <MyIcon type="icon-file-text-fill" />
                              &nbsp;
                              {getFileNameNotType(e.attachName, 8)}
                            </a>
                          </Tooltip>
                        );
                      })
                    : '--'}
                </div>
              )}
            </>
          );
        },
      },
      {
        label: '五、其他要求',
        field: 'packTitle',
        component: 'Title',
      },
      {
        label: '履约保证金',
        field: 'bidMarginFlag',
        component: 'Render',
        colSpan: 2,
        slotRender: (text: string = '1') => {
          let name = '';
          if (text == '1') {
            name = '缴纳';
          } else {
            name = '不缴纳';
          }
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>{name}</span>;
          } else {
            return (
              <TagSelect
                colSpan={24}
                formLabel={''}
                formName={'bidMarginFlag'}
                onChange={(value) => {
                  changeRadio(value, 'bidMarginFlag');
                }}
                defalultKeys={Number(text)}
                radioDisabled={disabled}
                radioList={[
                  {
                    value: 1,
                    name: '缴纳',
                  },
                  {
                    value: 0,
                    name: '不缴纳',
                  },
                ]}
              />
            );
          }
        },
      },
      {
        label: '合同金额的',
        field: 'bidMargin',
        component: 'InputNumber',
        type: 'number',
        placeholder: '不得超过10%',
        contentAfter: '%',
        min: 0,
        max: 10,
        step: '0.01',
        required: true,
        colSpan: radioState?.bidMarginFlag == 0 || radioState?.bidMarginFlag == null ? 0 : 1,
        disabled,
      },
      // {
      //   label: '缴纳时间',
      //   field: 'bidMarginTime',
      //   placeholder: '请选择缴纳时间',
      //   component: 'Render',
      //   required: true,
      //   colSpan: radioState?.bidMarginFlag == 0 || radioState?.bidMarginFlag == null ? 0 : 1,
      //   slotRender: (text) => {
      //     if (disabled) {
      //       return <div style={{ marginLeft: '8px' }}>{text ? moment(text)?.format('YYYY-MM-DD') : '--'}</div>;
      //     } else {
      //       return (
      //         <>
      //           <Form.Item
      //             name={'bidMarginTime'}
      //             rules={[
      //               {
      //                 required: true,
      //                 message: '请选择缴纳时间',
      //               },
      //             ]}
      //           >
      //             <DatePicker />
      //           </Form.Item>
      //         </>
      //       );
      //     }
      //   },
      // },
      {
        label: '缴纳时间',
        field: 'bidMarginTime',
        placeholder: '请选择',
        component: 'Render',
        required: true,
        colSpan: radioState?.bidMarginFlag == 0 || radioState?.bidMarginFlag == null ? 0 : 1,
        ishidden: tableType == KJXYCG() || radioState?.bidMarginFlag == 0 || radioState?.bidMarginFlag == null ? true : false,
        slotRender: (text, record) => {
          if (disabled) {
            return <div style={{ marginLeft: '8px' }}>{text ? text : <span style={{ color: '#ccc' }}>--</span>}</div>;
          } else {
            return (
              <>
                <Form.Item
                  name={'bidMarginTime'}
                  rules={[
                    {
                      required: true,
                      message: '请输入',
                    },
                  ]}
                >
                  <Input placeholder="请输入缴纳时间" />
                </Form.Item>
              </>
            );
          }
        },
      },
      {
        label: (
          <div>
            <span>六、正式招标文件</span>
            <span style={{ color: 'red', fontSize: '14px' }}>（采购文件定稿后上传）</span>
          </div>
        ),
        field: 'documentsTitle',
        component: 'Title',
      },
      {
        label: '正式采购文件',
        field: 'busiFileURL',
        component: 'Render',
        colSpan: 2,
        slotRender: (text) => {
          const fileName = 'busiFileURL';
          return (
            <>
              {!disabled ? (
                <UploadFormCommon
                  form={formRef}
                  fileFormName={fileName}
                  spanCol={24}
                  inRowProportion={24}
                  name={'attachFile'}
                  required={false}
                  accept={'.doc|.docx'}
                  url={'/purchaseSourceController/uploadFile'}
                  downloadUrl={'/purchaseSourceController/downloadFile'}
                  fileFormDelName={'delFile'}
                  maxFile={1}
                  delFunc={(delFilePath: string) => {
                    handleDelFileFn(delFilePath, fileName);
                  }}
                  uploadSuccessCallback={(attachPaths) => {
                    handleAddFileFn(attachPaths, fileName);
                  }}
                  defaultFiles={text}
                  hintTitle={'且只能上传 1 个！'}
                  fieldBusiPath={'purchase/source'}
                  isShowUploadBtn={true}
                >
                  上传
                </UploadFormCommon>
              ) : (
                <div
                  style={{
                    height: '100%',
                    display: 'flex',
                    alignItems: 'center',
                    marginLeft: '8px',
                  }}
                >
                  {radioState?.[fileName]
                    ? splitFileUrl(radioState?.[fileName])?.map((e) => {
                        return (
                          <Tooltip title={e.attachName} key={new Date().getTime() * 25615265152 + e?.attachName}>
                            <a
                              onClick={() => {
                                message.success('下载中，请稍后...');
                                downloadTemplate('/purchaseSourceController/downloadFile', e?.attachName, e?.attachUrl, () => {});
                              }}
                            >
                              <MyIcon type="icon-file-text-fill" />
                              &nbsp;
                              {getFileNameNotType(e.attachName, 8)}
                            </a>
                          </Tooltip>
                        );
                      })
                    : '--'}
                </div>
              )}
            </>
          );
        },
      },
      {
        label: '招标文件',
        field: 'bidFileURL',
        component: 'Render',
        colSpan: 2,
        slotRender: (text) => {
          const fileName = 'bidFileURL';
          return (
            <>
              {!disabled ? (
                <UploadFormCommon
                  form={formRef}
                  fileFormName={fileName}
                  spanCol={24}
                  inRowProportion={24}
                  name={'attachFile'}
                  required={false}
                  accept={'.doc|.docx'}
                  url={'/purchaseSourceController/uploadFile'}
                  downloadUrl={'/purchaseSourceController/downloadFile'}
                  fileFormDelName={'delFile'}
                  maxFile={1}
                  delFunc={(delFilePath: string) => {
                    handleDelFileFn(delFilePath, fileName);
                  }}
                  uploadSuccessCallback={(attachPaths) => {
                    handleAddFileFn(attachPaths, fileName);
                  }}
                  defaultFiles={text}
                  hintTitle={'且只能上传 1 个！'}
                  fieldBusiPath={'purchase/source'}
                  isShowUploadBtn={true}
                >
                  上传
                </UploadFormCommon>
              ) : (
                <div
                  style={{
                    height: '100%',
                    display: 'flex',
                    alignItems: 'center',
                    marginLeft: '8px',
                  }}
                >
                  {radioState?.[fileName]
                    ? splitFileUrl(radioState?.[fileName])?.map((e) => {
                        return (
                          <Tooltip title={e.attachName} key={new Date().getTime() * 25615265152 + e?.attachName}>
                            <a
                              onClick={() => {
                                message.success('下载中，请稍后...');
                                downloadTemplate('/purchaseSourceController/downloadFile', e?.attachName, e?.attachUrl, () => {});
                              }}
                            >
                              <MyIcon type="icon-file-text-fill" />
                              &nbsp;
                              {getFileNameNotType(e.attachName, 8)}
                            </a>
                          </Tooltip>
                        );
                      })
                    : '--'}
                </div>
              )}
            </>
          );
        },
      },
    ];
  } else if (tableType == KJXYCG()) {
    // 7
    return [
      {
        label: '一、基本信息',
        field: 'baseInfoTitle',
        component: 'Title',
      },
      {
        label: '标包名称',
        field: 'packName',
        component: 'Input',
        disabled: true,
      },
      {
        label: '包号',
        field: 'packCode',
        component: 'Input',
        disabled: true,
      },
      {
        label: '所属行业',
        field: 'industryKind',
        component: 'Select',
        fieldNames: { label: 'name', value: 'value' },
        options: industry_involveds,
        required: true,
        disabled,
      },
      {
        label: '项目属性',
        field: 'supplyType',
        component: 'Render',
        slotRender: (text) => {
          let name = '';
          if (text == `${getTenantID()}${ILoadMapTypeAll?.PURCHASE_CATEGORY}1000`) {
            text = '1';
            name = '货物类';
          } else {
            text = '0';
            name = '服务类';
          }
          return (
            <>
              {disabled ? (
                <span style={{ paddingLeft: 8 }}>{name}</span>
              ) : (
                <TagSelect colSpan={24} formLabel={''} formName={'supplyType'} defalultKeys={text} radioList={supplyTypeList} radioDisabled={true} />
              )}
            </>
          );
        },
      },
      {
        label: '预算金额',
        field: 'expectSum',
        component: 'InputNumber',
        formatter: (value: number) => {
          if (value) {
            return Number(value).toFixed(2);
          }
        },
        contentAfter: '元',
        disabled: true,
      },
      {
        label: '最高限价',
        field: 'expectCeilSum',
        component: 'InputNumber',
        formatter: (value: number) => {
          if (value) {
            return Number(value).toFixed(2);
          }
        },
        min: 1,
        contentAfter: '元',
        disabled,
        required: true,
      },
      {
        label: '拟采用采购方式',
        field: 'procureReal',
        component: 'Input',
        disabled: true,
      },
      {
        label: '投标有效期',
        field: disabled ? 'Render' : 'bidPeriodDay',
        placeholder: '请选择投标有效期',
        component: 'Render',
        required: true,
        slotRender: (text) => {
          return (
            <>
              <div className="criteria-btnStyle">
                <div style={{ flex: 'auto', alignItems: 'center' }}>
                  {disabled ? (
                    <div
                      className={'formItem-bidPeriodDay'}
                      style={{ paddingLeft: 8, display: 'flex', alignItems: 'center', overflow: 'hidden', height: '100%' }}
                    >
                      <span>{infoState?.bidPeriodDay || '--'}</span>
                    </div>
                  ) : (
                    <Form.Item
                      name={'bidPeriodDay'}
                      className={'formItem-bidPeriodDay'}
                      rules={[
                        {
                          required: true,
                          message: '请选择投标有效期',
                        },
                        {
                          pattern: RegularExpression.integerNumber,
                          message: '输入的投标有效期必须是正整数',
                        },
                      ]}
                    >
                      <AutoComplete
                        value={text}
                        disabled={disabled}
                        placeholder="请选择/输入投标有效期"
                        defaultValue={'60'}
                        options={[
                          {
                            label: '60',
                            value: '60',
                          },
                          {
                            label: '90',
                            value: '90',
                          },
                          {
                            label: '120',
                            value: '120',
                          },
                        ]}
                      />
                    </Form.Item>
                  )}
                </div>
                <div className="criteria-btnStyle-bottomIcon">日</div>
              </div>
            </>
          );
          // }
        },
      },
      {
        label: '是否科研仪器设备',
        field: 'sciequipFlag',
        component: 'Render',
        colSpan: radioState?.supplyType == 0 ? 1 : 0,
        required: true,
        slotRender: (text: string = '0') => {
          let name = '';
          if (text == '1') {
            name = '是';
          } else {
            name = '否';
          }

          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>{name}</span>;
          } else {
            return (
              <TagSelect
                colSpan={24}
                formLabel={''}
                formName={'sciequipFlag'}
                defalultKeys={Number(text)}
                radioList={[
                  {
                    value: 1,
                    name: '是',
                  },
                  {
                    value: 0,
                    name: '否',
                  },
                ]}
                radioDisabled={disabled}
              />
            );
          }
        },
      },
      {
        label: '是否接受进口',
        field: 'importFlag',
        component: 'Render',
        colSpan: radioState?.supplyType == 0 ? 1 : 0,
        required: true,
        slotRender: (text: string = '0', record: Record<string, any>) => {
          let name = '';
          if (text == '1') {
            name = '是';
          } else {
            name = '否';
          }

          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>{name}</span>;
          } else {
            return (
              <TagSelect
                colSpan={24}
                formLabel={''}
                formName={'importFlag'}
                defalultKeys={Number(text)}
                radioList={[
                  {
                    value: 1,
                    name: '是',
                  },
                  {
                    value: 0,
                    name: '否',
                  },
                ]}
                radioDisabled={disabled}
              />
            );
          }
        },
      },
      {
        label: '是否单一产品采购项目',
        field: 'productFlag',
        component: 'Render',
        required: true,
        colSpan: radioState?.supplyType == 0 ? (radioState.productFlag == 0 || radioState.productFlag == null ? 2 : 1) : 0,
        slotRender: (text: any = 0) => {
          let name = '';
          if (text == '1') {
            name = '是';
          } else {
            name = '否';
          }
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>{name}</span>;
          } else {
            return (
              <TagSelect
                colSpan={24}
                formLabel={''}
                formName={'productFlag'}
                onChange={(value) => {
                  changeRadio(value, 'productFlag');
                }}
                defalultKeys={Number(text)}
                radioList={[
                  {
                    value: 1,
                    name: '是',
                  },
                  {
                    value: 0,
                    name: '否',
                  },
                ]}
                radioDisabled={disabled}
              />
            );
          }
        },
      },
      {
        label: '核心产品',
        field: 'productName',
        component: 'Input',
        disabled,
        required: true,
        colSpan: radioState?.supplyType == 0 ? (radioState.productFlag == 0 || radioState.productFlag == null ? 0 : 1) : 0,
      },
      {
        label: '二、投标人/供应商要求',
        field: 'requirementsTitle',
        component: 'Title',
      },

      {
        label: '是否接受联合体',
        field: 'complexFlag',
        component: 'Render',
        colSpan: 2,
        required: true,
        slotRender: (text: string = '0') => {
          let name = '';
          if (text == '1') {
            name = '是';
          } else {
            name = '否';
          }
          return (
            <>
              {disabled ? (
                <span style={{ paddingLeft: 8 }}>{name}</span>
              ) : (
                <TagSelect
                  colSpan={24}
                  formLabel={''}
                  formName={'complexFlag'}
                  defalultKeys={Number(text)}
                  radioList={[
                    {
                      value: 1,
                      name: '是',
                    },
                    {
                      value: 0,
                      name: '否',
                    },
                  ]}
                  radioDisabled={disabled}
                />
              )}
            </>
          );
        },
      },

      {
        label: '供应商特定资格要求',
        field: 'sourceContent',
        component: disabled ? 'Render' : 'InputTextArea',
        slotRender: (text) => {
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>暂无</span>;
          }
        },
        maxLength: 200,
        allowClear: true,
        autoSize: { minRows: 3, maxRows: 4 },
        showCount: true,
        colSpan: 2,
        disabled,
      },

      {
        label: '三、评标方法及标准',
        field: 'evaluationTitle',
        component: 'Title',
      },
      {
        label: '评分标准',
        field: 'evalFileURL',
        placeholder: '请选择评标方法',
        component: 'Render',
        // colSpan: radioState.evalStyle == `${getTenantID()}${ILoadMapTypeAll?.EVALSTYLE_TYPE}1003` ? 0 : 1,
        colSpan: 2,
        slotRender: (text) => {
          let fileName = 'evalFileURL';
          return (
            <div className="criteria-btnStyle">
              <div style={{ flex: 'auto', alignItems: 'center' }}>
                {!disabled ? (
                  <UploadFormCommon
                    form={formRef}
                    fileFormName={fileName}
                    spanCol={24}
                    inRowProportion={24}
                    name={'attachFile'}
                    required={false}
                    accept={'.doc|.docx'}
                    url={'/purchaseSourceController/uploadFile'}
                    downloadUrl={'/purchaseSourceController/downloadFile'}
                    fileFormDelName={'delFile'}
                    delFunc={(delFilePath: string) => {
                      handleDelFileFn(delFilePath, fileName);
                    }}
                    uploadSuccessCallback={(attachPaths) => {
                      handleAddFileFn(attachPaths, fileName);
                    }}
                    defaultFiles={text}
                    maxFile={1}
                    hintTitle={'且只能上传 1 个！'}
                    fieldBusiPath={'purchase/source'}
                    isShowUploadBtn={true}
                  >
                    上传
                  </UploadFormCommon>
                ) : (
                  <div
                    style={{
                      height: '100%',
                      display: 'flex',
                      alignItems: 'center',
                      marginLeft: '8px',
                    }}
                  >
                    {radioState?.[fileName]
                      ? splitFileUrl(radioState?.[fileName])?.map((e) => {
                          return (
                            <Tooltip title={e.attachName} key={new Date().getTime() * 25615265152 + e?.attachName}>
                              <a
                                onClick={() => {
                                  message.success('下载中，请稍后...');
                                  downloadTemplate('/purchaseSourceController/downloadFile', e?.attachName, e?.attachUrl, () => {});
                                }}
                              >
                                <MyIcon type="icon-file-text-fill" />
                                &nbsp;
                                {getFileNameNotType(e.attachName, 8)}
                              </a>
                            </Tooltip>
                          );
                        })
                      : '--'}
                  </div>
                )}
              </div>
              <div className="criteria-btnStyle-bottomIcon">
                <a onClick={() => {}}>
                  <Tooltip title={`下载模板`}>
                    <VerticalAlignBottomOutlined />
                  </Tooltip>
                </a>
              </div>
            </div>
          );
        },
      },
      {
        label: '第一阶段入围供应商数量',
        field: 'supplierMinNum',
        component: 'Input',
        colSpan: 2,
        disabled,
      },
      {
        label: '第一阶段入围供应商评审方法',
        field: 'evalStyle',
        component: 'Render',
        colSpan: 2,
        slotRender: (text: string = `${getTenantID()}${ILoadMapTypeAll?.EVALSTYLE_TYPE}1000`) => {
          let name = '--';
          if (text == `${getTenantID()}${ILoadMapTypeAll?.EVALSTYLE_TYPE}1000`) {
            name = '质量优先法';
          } else if (text == `${getTenantID()}${ILoadMapTypeAll?.EVALSTYLE_TYPE}1001`) {
            name = '价格优先法';
          }

          return (
            <>
              {disabled ? (
                <span style={{ paddingLeft: 8 }}>{name}</span>
              ) : (
                <TagSelect
                  colSpan={24}
                  formLabel={''}
                  formName={'evalStyle'}
                  onChange={(value) => {
                    changeRadio(value, 'evalStyle');
                  }}
                  defalultKeys={text}
                  radioDisabled={disabled}
                  radioList={DYJD}
                />
              )}
            </>
          );
        },
      },
      {
        label: '确认第二阶段成交供应商方式',
        field: 'executeStyle',
        component: 'Render',
        colSpan: 2,
        slotRender: (text: string = '0') => {
          let name = '--';
          if (text == '0') {
            name = '直接选定方式';
          } else if (text == '1') {
            name = '二次竞价方式';
          } else if (text == '2') {
            name = '顺序轮候方式';
          }

          return (
            <>
              {disabled ? (
                <span style={{ paddingLeft: 8 }}>{name}</span>
              ) : (
                <TagSelect
                  colSpan={24}
                  formLabel={''}
                  formName={'executeStyle'}
                  onChange={(value) => {
                    changeRadio(value, 'executeStyle');
                  }}
                  defalultKeys={Number(text)}
                  radioDisabled={disabled}
                  radioList={[
                    {
                      value: 0,
                      name: '直接选定方式',
                    },
                    {
                      value: 1,
                      name: '二次竞价方式',
                    },
                    {
                      value: 2,
                      name: '顺序轮候方式',
                    },
                  ]}
                />
              )}
            </>
          );
        },
      },
      {
        label: '四、采购需求及合同范本',
        field: 'requirements',
        component: 'Title',
      },
      {
        label: '统一合同范本',
        field: 'templateFlag',
        component: 'Render',
        colSpan: 2,
        slotRender: (text: string = '0') => {
          let name = '';
          if (text == '1') {
            name = '是';
          } else {
            name = '否';
          }
          return (
            <>
              {disabled ? (
                <span style={{ paddingLeft: 8 }}>{name}</span>
              ) : (
                <TagSelect
                  colSpan={24}
                  formLabel={''}
                  formName={'templateFlag'}
                  defalultKeys={Number(text)}
                  onChange={(value) => {
                    changeRadio(value, 'templateFlag');
                  }}
                  radioList={[
                    {
                      value: 1,
                      name: '是',
                    },
                    {
                      value: 0,
                      name: '否',
                    },
                  ]}
                  radioDisabled={disabled}
                />
              )}
            </>
          );
        },
      },
      {
        label: '合同范本',
        field: 'contract',
        component: 'Input',
        placeholder: '请选择合同范本',
        message: '请选择合同范本',
        disabled: true,
        required: true,
        colSpan: Number(radioState.templateFlag) == 1 ? 2 : 0,
        contentAfter: (
          <a
            onClick={() => {
              setIsShow(true);
            }}
          >
            <SearchOutlined />
          </a>
        ),
      },
      {
        label: '合同文本',
        field: 'contractURL',
        component: 'Render',
        required: true,
        colSpan: Number(radioState.templateFlag) == 0 ? 2 : radioState?.templateFlag == undefined ? 2 : 0,
        slotRender: (text) => {
          const fileName = 'contractURL';
          return (
            <div className="criteria-btnStyle">
              <div style={{ flex: 'auto', alignItems: 'center' }}>
                {!disabled ? (
                  <UploadFormCommon
                    form={formRef}
                    fileFormName={fileName}
                    spanCol={24}
                    inRowProportion={24}
                    name={'attachFile'}
                    required={true}
                    accept={'.doc|.docx'}
                    url={'/purchaseSourceController/uploadFile'}
                    downloadUrl={'/purchaseSourceController/downloadFile'}
                    fileFormDelName={'delFile'}
                    maxFile={1}
                    delFunc={(delFilePath: string) => {
                      handleDelFileFn(delFilePath, fileName);
                    }}
                    uploadSuccessCallback={(attachPaths) => {
                      handleAddFileFn(attachPaths, fileName);
                    }}
                    defaultFiles={text}
                    hintTitle={'且只能上传 1 个！'}
                    fieldBusiPath={'purchase/source'}
                    isShowUploadBtn={true}
                  >
                    上传
                  </UploadFormCommon>
                ) : (
                  <div
                    style={{
                      height: '100%',
                      display: 'flex',
                      alignItems: 'center',
                      marginLeft: '8px',
                    }}
                  >
                    {radioState?.[fileName]
                      ? splitFileUrl(radioState?.[fileName])?.map((e) => {
                          return (
                            <Tooltip title={e.attachName} key={new Date().getTime() * 25615265152 + e?.attachName}>
                              <a
                                onClick={() => {
                                  message.success('下载中，请稍后...');
                                  downloadTemplate('/purchaseSourceController/downloadFile', e?.attachName, e?.attachUrl, () => {});
                                }}
                              >
                                <MyIcon type="icon-file-text-fill" />
                                &nbsp;
                                {getFileNameNotType(e.attachName, 8)}
                              </a>
                            </Tooltip>
                          );
                        })
                      : '--'}
                  </div>
                )}
              </div>
              <div className="criteria-btnStyle-bottomIcon">
                <a onClick={() => {}}>
                  <Tooltip title={`下载模板`}>
                    <VerticalAlignBottomOutlined />
                  </Tooltip>
                </a>
              </div>
            </div>
          );
        },
      },
      {
        label: '采购需求',
        field: 'needFileURL',
        component: 'Render',
        colSpan: 2,
        slotRender: (text) => {
          const fileName = 'needFileURL';
          return (
            <>
              {!disabled ? (
                <UploadFormCommon
                  form={formRef}
                  fileFormName={fileName}
                  spanCol={24}
                  inRowProportion={24}
                  name={'attachFile'}
                  required={false}
                  accept={'.doc|.docx'}
                  url={'/purchaseSourceController/uploadFile'}
                  downloadUrl={'/purchaseSourceController/downloadFile'}
                  fileFormDelName={'delFile'}
                  maxFile={1}
                  delFunc={(delFilePath: string) => {
                    handleDelFileFn(delFilePath, fileName);
                  }}
                  uploadSuccessCallback={(attachPaths) => {
                    handleAddFileFn(attachPaths, fileName);
                  }}
                  defaultFiles={text}
                  hintTitle={'且只能上传 1 个！'}
                  fieldBusiPath={'purchase/source'}
                  isShowUploadBtn={true}
                >
                  上传
                </UploadFormCommon>
              ) : (
                <div
                  style={{
                    height: '100%',
                    display: 'flex',
                    alignItems: 'center',
                    marginLeft: '8px',
                  }}
                >
                  {radioState?.[fileName]
                    ? splitFileUrl(radioState?.[fileName])?.map((e) => {
                        return (
                          <Tooltip title={e.attachName} key={new Date().getTime() * 25615265152 + e?.attachName}>
                            <a
                              onClick={() => {
                                message.success('下载中，请稍后...');
                                downloadTemplate('/purchaseSourceController/downloadFile', e?.attachName, e?.attachUrl, () => {});
                              }}
                            >
                              <MyIcon type="icon-file-text-fill" />
                              &nbsp;
                              {getFileNameNotType(e.attachName, 8)}
                            </a>
                          </Tooltip>
                        );
                      })
                    : '--'}
                </div>
              )}
            </>
          );
        },
      },
      {
        label: '五、其他要求',
        field: 'requirementsTitle',
        component: 'Title',
      },
      {
        label: '是否现场考察',
        field: 'siteVisitFlag',
        component: 'Render',
        colSpan: radioState.siteVisitFlag == 0 ? 2 : 1,
        slotRender: (text: string = '0') => {
          let name = '';
          if (text == '1') {
            name = '组织';
          } else {
            name = '不组织';
          }
          return (
            <>
              {disabled ? (
                <span style={{ paddingLeft: 8 }}>{name}</span>
              ) : (
                <TagSelect
                  colSpan={24}
                  formLabel={''}
                  formName={'siteVisitFlag'}
                  onChange={(value) => {
                    changeRadio(value, 'siteVisitFlag');
                  }}
                  defalultKeys={Number(text)}
                  radioDisabled={disabled}
                  radioList={[
                    {
                      value: 1,
                      name: '组织',
                    },
                    {
                      value: 0,
                      name: '不组织',
                    },
                  ]}
                />
              )}
            </>
          );
        },
      },
      {
        label: '考察时间',
        field: 'siteVisitTime',
        placeholder: '请选择考察时间',
        component: 'Render',
        required: true,
        colSpan: radioState.siteVisitFlag == 0 ? 0 : 1,
        slotRender: (text) => {
          if (disabled) {
            return <div style={{ marginLeft: '8px' }}>{text ? moment(text)?.format('YYYY-MM-DD') : '--'}</div>;
          } else {
            return (
              <>
                <Form.Item
                  name={'siteVisitTime'}
                  rules={[
                    {
                      required: true,
                      message: '请选择考察时间',
                    },
                  ]}
                >
                  <DatePicker />
                </Form.Item>
              </>
            );
          }
        },
      },
      {
        label: '考察地点',
        field: 'siteVisitAddress',
        maxLength: 200,
        component: disabled ? 'Render' : 'InputTextArea',
        slotRender: (text) => {
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>暂无</span>;
          }
        },
        allowClear: true,
        autoSize: { minRows: 3, maxRows: 4 },
        showCount: true,
        required: true,
        colSpan: radioState.siteVisitFlag == 0 ? 0 : 2,
        disabled,
      },
      {
        label: '开标前答疑会',
        field: 'meetFlag',
        component: 'Render',
        colSpan: radioState.meetFlag == 0 ? 2 : 1,
        slotRender: (text: string = '0') => {
          let name = '';
          if (text == '1') {
            name = '召开';
          } else {
            name = '不召开';
          }

          return (
            <>
              {disabled ? (
                <span style={{ paddingLeft: 8 }}>{name}</span>
              ) : (
                <TagSelect
                  colSpan={24}
                  formLabel={''}
                  formName={'meetFlag'}
                  onChange={(value) => {
                    changeRadio(value, 'meetFlag');
                  }}
                  radioDisabled={disabled}
                  defalultKeys={Number(text)}
                  radioList={[
                    {
                      value: 1,
                      name: '召开',
                    },
                    {
                      value: 0,
                      name: '不召开',
                    },
                  ]}
                />
              )}
            </>
          );
        },
      },
      {
        label: '召开时间',
        field: 'meetTime',
        placeholder: '请选择召开时间',
        component: 'Render',
        required: true,
        colSpan: radioState.meetFlag == 0 ? 0 : 1,
        slotRender: (text) => {
          if (disabled) {
            return <div style={{ marginLeft: '8px' }}>{text ? moment(text)?.format('YYYY-MM-DD') : '--'}</div>;
          } else {
            return (
              <>
                <Form.Item name={'meetTime'} rules={[{ required: true, message: '请选择召开时间' }]}>
                  <DatePicker />
                </Form.Item>
              </>
            );
          }
        },
      },
      {
        label: '召开地点',
        field: 'meetAddress',
        maxLength: 200,
        component: disabled ? 'Render' : 'InputTextArea',
        slotRender: (text) => {
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>暂无</span>;
          }
        },
        allowClear: true,
        autoSize: { minRows: 3, maxRows: 4 },
        showCount: true,
        required: true,
        disabled,
        colSpan: radioState.meetFlag == 0 ? 0 : 2,
      },
      {
        label: '是否需要样品',
        field: 'sampleFlag',
        component: 'Render',
        colSpan: radioState.sampleFlag == 0 ? 2 : 1,
        slotRender: (text: string = '0') => {
          let name = '';
          if (text == '1') {
            name = '需要';
          } else {
            name = '不需要';
          }

          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>{name}</span>;
          } else {
            return (
              <TagSelect
                colSpan={24}
                formLabel={''}
                onChange={(value) => {
                  changeRadio(value, 'sampleFlag');
                }}
                formName={'sampleFlag'}
                defalultKeys={Number(text)}
                radioDisabled={disabled}
                radioList={[
                  {
                    value: 1,
                    name: '需要',
                  },
                  {
                    value: 0,
                    name: '不需要',
                  },
                ]}
              />
            );
          }
        },
      },
      {
        label: '相关检测报告',
        field: 'sampleCheck',
        component: 'Render',
        colSpan: radioState.sampleFlag == 0 ? 0 : 1,
        slotRender: (text: string = '0') => {
          let name = '';
          if (text == '1') {
            name = '需要';
          } else {
            name = '不需要';
          }

          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>{name}</span>;
          } else {
            return (
              <TagSelect
                colSpan={24}
                formLabel={''}
                formName={'sampleCheck'}
                onChange={(value) => {
                  changeRadio(value, 'sampleCheck');
                }}
                radioDisabled={disabled}
                defalultKeys={Number(text)}
                radioList={[
                  {
                    value: 1,
                    name: '需要',
                  },
                  {
                    value: 0,
                    name: '不需要',
                  },
                ]}
              />
            );
          }
        },
      },
      {
        label: '样品制作的标准和要求',
        field: 'sampleMake',
        maxLength: 200,
        component: disabled ? 'Render' : 'InputTextArea',
        slotRender: (text) => {
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>暂无</span>;
          }
        },
        allowClear: true,
        autoSize: { minRows: 3, maxRows: 4 },
        showCount: true,
        required: true,
        disabled,
        colSpan: radioState.sampleFlag == 0 ? 0 : 2,
      },
      {
        label: '未中标人样品退还',
        field: 'sampleReturn',
        component: disabled ? 'Render' : 'InputTextArea',
        slotRender: (text) => {
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>暂无</span>;
          }
        },
        allowClear: true,
        maxLength: 200,
        required: true,
        autoSize: { minRows: 3, maxRows: 4 },
        showCount: true,
        disabled,
        colSpan: radioState.sampleFlag == 0 ? 0 : radioState.sampleCheck == 0 ? 0 : 2,
      },
      {
        label: '中标人样品保管、封存及退还',
        field: 'sampleSeal',
        component: disabled ? 'Render' : 'InputTextArea',
        slotRender: (text) => {
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>暂无</span>;
          }
        },
        allowClear: true,
        maxLength: 200,
        autoSize: { minRows: 3, maxRows: 4 },
        showCount: true,
        required: true,
        disabled,
        colSpan: radioState.sampleFlag == 0 ? 0 : radioState.sampleCheck == 0 ? 0 : 2,
      },
      {
        label: '样品递交要求',
        field: 'sampleDeliver',
        component: disabled ? 'Render' : 'InputTextArea',
        slotRender: (text) => {
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>暂无</span>;
          }
        },
        allowClear: true,
        maxLength: 200,
        autoSize: { minRows: 3, maxRows: 4 },
        showCount: true,
        required: true,
        disabled,
        colSpan: radioState.sampleFlag == 0 ? 0 : radioState.sampleCheck == 0 ? 0 : 2,
      },
      {
        label: '样品其他要求',
        field: 'sampleOther',
        component: disabled ? 'Render' : 'InputTextArea',
        slotRender: (text) => {
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>暂无</span>;
          }
        },
        maxLength: 200,
        allowClear: true,
        autoSize: { minRows: 3, maxRows: 4 },
        showCount: true,
        disabled,
        colSpan: radioState.sampleFlag == 0 ? 0 : radioState.sampleCheck == 0 ? 0 : 2,
      },
      {
        label: (
          <div>
            <span>六、正式招标文件</span>
            <span style={{ color: 'red', fontSize: '14px' }}>（采购文件定稿后上传）</span>
          </div>
        ),
        field: 'documentsTitle',
        component: 'Title',
      },
      {
        label: '正式采购文件',
        field: 'busiFileURL',
        component: 'Render',
        colSpan: 2,
        slotRender: (text) => {
          const fileName = 'busiFileURL';
          return (
            <>
              {!disabled ? (
                <UploadFormCommon
                  form={formRef}
                  fileFormName={fileName}
                  spanCol={24}
                  inRowProportion={24}
                  name={'attachFile'}
                  required={false}
                  accept={'.doc|.docx'}
                  url={'/purchaseSourceController/uploadFile'}
                  downloadUrl={'/purchaseSourceController/downloadFile'}
                  fileFormDelName={'delFile'}
                  maxFile={1}
                  delFunc={(delFilePath: string) => {
                    handleDelFileFn(delFilePath, fileName);
                  }}
                  uploadSuccessCallback={(attachPaths) => {
                    handleAddFileFn(attachPaths, fileName);
                  }}
                  defaultFiles={text}
                  hintTitle={'且只能上传 1 个！'}
                  fieldBusiPath={'purchase/source'}
                  isShowUploadBtn={true}
                >
                  上传
                </UploadFormCommon>
              ) : (
                <div
                  style={{
                    height: '100%',
                    display: 'flex',
                    alignItems: 'center',
                    marginLeft: '8px',
                  }}
                >
                  {radioState?.[fileName]
                    ? splitFileUrl(radioState?.[fileName])?.map((e) => {
                        return (
                          <Tooltip title={e.attachName} key={new Date().getTime() * 25615265152 + e?.attachName}>
                            <a
                              onClick={() => {
                                message.success('下载中，请稍后...');
                                downloadTemplate('/purchaseSourceController/downloadFile', e?.attachName, e?.attachUrl, () => {});
                              }}
                            >
                              <MyIcon type="icon-file-text-fill" />
                              &nbsp;
                              {getFileNameNotType(e.attachName, 8)}
                            </a>
                          </Tooltip>
                        );
                      })
                    : '--'}
                </div>
              )}
            </>
          );
        },
      },
      {
        label: '招标文件',
        field: 'bidFileURL',
        component: 'Render',
        colSpan: 2,
        slotRender: (text) => {
          const fileName = 'bidFileURL';
          return (
            <>
              {!disabled ? (
                <UploadFormCommon
                  form={formRef}
                  fileFormName={fileName}
                  spanCol={24}
                  inRowProportion={24}
                  name={'attachFile'}
                  required={false}
                  accept={'.doc|.docx'}
                  url={'/purchaseSourceController/uploadFile'}
                  downloadUrl={'/purchaseSourceController/downloadFile'}
                  fileFormDelName={'delFile'}
                  maxFile={1}
                  delFunc={(delFilePath: string) => {
                    handleDelFileFn(delFilePath, fileName);
                  }}
                  uploadSuccessCallback={(attachPaths) => {
                    handleAddFileFn(attachPaths, fileName);
                  }}
                  defaultFiles={text}
                  hintTitle={'且只能上传 1 个！'}
                  fieldBusiPath={'purchase/source'}
                  isShowUploadBtn={true}
                >
                  上传
                </UploadFormCommon>
              ) : (
                <div
                  style={{
                    height: '100%',
                    display: 'flex',
                    alignItems: 'center',
                    marginLeft: '8px',
                  }}
                >
                  {radioState?.[fileName]
                    ? splitFileUrl(radioState?.[fileName])?.map((e) => {
                        return (
                          <Tooltip title={e.attachName} key={new Date().getTime() * 25615265152 + e?.attachName}>
                            <a
                              onClick={() => {
                                message.success('下载中，请稍后...');
                                downloadTemplate('/purchaseSourceController/downloadFile', e?.attachName, e?.attachUrl, () => {});
                              }}
                            >
                              <MyIcon type="icon-file-text-fill" />
                              &nbsp;
                              {getFileNameNotType(e.attachName, 8)}
                            </a>
                          </Tooltip>
                        );
                      })
                    : '--'}
                </div>
              )}
            </>
          );
        },
      },
    ];
  } else if (tableType == BJCS()) {
    // 8
    return [
      {
        label: '一、基本信息',
        field: 'baseInfoTitle',
        component: 'Title',
      },
      {
        label: '标包名称',
        field: 'packName',
        component: 'Input',
        disabled: true,
      },
      {
        label: '包号',
        field: 'packCode',
        component: 'Input',
        disabled: true,
      },
      {
        label: '所属行业',
        field: 'industryKind',
        component: 'Select',
        fieldNames: { label: 'name', value: 'value' },
        options: industry_involveds,
        required: true,
        disabled,
      },
      {
        label: '项目属性',
        field: 'supplyType',
        component: 'Render',
        slotRender: (text) => {
          let name = '';
          if (text == `${getTenantID()}${ILoadMapTypeAll?.PURCHASE_CATEGORY}1000`) {
            text = '1';
            name = '货物类';
          } else {
            text = '0';
            name = '服务类';
          }
          return (
            <>
              {disabled ? (
                <span style={{ paddingLeft: 8 }}>{name}</span>
              ) : (
                <TagSelect colSpan={24} formLabel={''} formName={'supplyType'} defalultKeys={text} radioList={supplyTypeList} radioDisabled={true} />
              )}
            </>
          );
        },
      },
      {
        label: '预算金额',
        field: 'expectSum',
        component: 'InputNumber',
        formatter: (value: number) => {
          if (value) {
            return Number(value).toFixed(2);
          }
        },
        contentAfter: '元',
        disabled: true,
      },
      {
        label: '最高限价',
        field: 'expectCeilSum',
        component: 'InputNumber',
        formatter: (value: number) => {
          if (value) {
            return Number(value).toFixed(2);
          }
        },
        min: 1,
        contentAfter: '元',
        disabled,
        required: true,
      },
      {
        label: '拟采用采购方式',
        field: 'procureReal',
        component: 'Input',
        disabled: true,
      },
      {
        label: '投标有效期',
        field: disabled ? 'Render' : 'bidPeriodDay',
        placeholder: '请选择投标有效期',
        component: 'Render',
        required: true,
        slotRender: (text) => {
          return (
            <>
              <div className="criteria-btnStyle">
                <div style={{ flex: 'auto', alignItems: 'center' }}>
                  {disabled ? (
                    <div
                      className={'formItem-bidPeriodDay'}
                      style={{ paddingLeft: 8, display: 'flex', alignItems: 'center', overflow: 'hidden', height: '100%' }}
                    >
                      <span>{infoState?.bidPeriodDay || '--'}</span>
                    </div>
                  ) : (
                    <Form.Item
                      name={'bidPeriodDay'}
                      className={'formItem-bidPeriodDay'}
                      rules={[
                        {
                          required: true,
                          message: '请选择投标有效期',
                        },
                        {
                          pattern: RegularExpression.integerNumber,
                          message: '输入的投标有效期必须是正整数',
                        },
                      ]}
                    >
                      <AutoComplete
                        value={text}
                        disabled={disabled}
                        placeholder="请选择/输入投标有效期"
                        defaultValue={'60'}
                        options={[
                          {
                            label: '60',
                            value: '60',
                          },
                          {
                            label: '90',
                            value: '90',
                          },
                          {
                            label: '120',
                            value: '120',
                          },
                        ]}
                      />
                    </Form.Item>
                  )}
                </div>
                <div className="criteria-btnStyle-bottomIcon">日</div>
              </div>
            </>
          );
          // }
        },
      },
      {
        label: '是否科研仪器设备',
        field: 'sciequipFlag',
        component: 'Render',
        colSpan: radioState?.supplyType == 0 ? 1 : 0,
        required: true,
        slotRender: (text: string = '0') => {
          let name = '';
          if (text == '1') {
            name = '是';
          } else {
            name = '否';
          }

          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>{name}</span>;
          } else {
            return (
              <TagSelect
                colSpan={24}
                formLabel={''}
                formName={'sciequipFlag'}
                defalultKeys={Number(text)}
                radioList={[
                  {
                    value: 1,
                    name: '是',
                  },
                  {
                    value: 0,
                    name: '否',
                  },
                ]}
                radioDisabled={disabled}
              />
            );
          }
        },
      },
      {
        label: '是否接受进口',
        field: 'importFlag',
        component: 'Render',
        colSpan: radioState?.supplyType == 0 ? 1 : 0,
        required: true,
        slotRender: (text: string = '0', record: Record<string, any>) => {
          let name = '';
          if (text == '1') {
            name = '是';
          } else {
            name = '否';
          }

          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>{name}</span>;
          } else {
            return (
              <TagSelect
                colSpan={24}
                formLabel={''}
                formName={'importFlag'}
                defalultKeys={Number(text)}
                radioList={[
                  {
                    value: 1,
                    name: '是',
                  },
                  {
                    value: 0,
                    name: '否',
                  },
                ]}
                radioDisabled={disabled}
              />
            );
          }
        },
      },
      {
        label: '是否单一产品采购项目',
        field: 'productFlag',
        component: 'Render',
        required: true,
        colSpan: radioState?.supplyType == 0 ? (radioState.productFlag == 0 || radioState.productFlag == null ? 2 : 1) : 0,
        slotRender: (text: any = 0) => {
          let name = '';
          if (text == '1') {
            name = '是';
          } else {
            name = '否';
          }
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>{name}</span>;
          } else {
            return (
              <TagSelect
                colSpan={24}
                formLabel={''}
                formName={'productFlag'}
                onChange={(value) => {
                  changeRadio(value, 'productFlag');
                }}
                defalultKeys={Number(text)}
                radioList={[
                  {
                    value: 1,
                    name: '是',
                  },
                  {
                    value: 0,
                    name: '否',
                  },
                ]}
                radioDisabled={disabled}
              />
            );
          }
        },
      },
      {
        label: '核心产品',
        field: 'productName',
        component: 'Input',
        disabled,
        required: true,
        colSpan: radioState?.supplyType == 0 ? (radioState.productFlag == 0 || radioState.productFlag == null ? 0 : 1) : 0,
      },
      {
        label: '二、投标人/供应商要求',
        field: 'baseInfoTitle',
        component: 'Title',
      },
      {
        label: '是否接受联合体',
        field: 'complexFlag',
        component: 'Render',
        colSpan: 2,
        required: true,
        slotRender: (text: string = '0') => {
          let name = '';
          if (text == '1') {
            name = '是';
          } else {
            name = '否';
          }
          return (
            <>
              {disabled ? (
                <span style={{ paddingLeft: 8 }}>{name}</span>
              ) : (
                <TagSelect
                  colSpan={24}
                  formLabel={''}
                  formName={'complexFlag'}
                  defalultKeys={Number(text)}
                  radioList={[
                    {
                      value: 1,
                      name: '是',
                    },
                    {
                      value: 0,
                      name: '否',
                    },
                  ]}
                  radioDisabled={disabled}
                />
              )}
            </>
          );
        },
      },
      {
        label: '供应商特定资格要求',
        field: 'sourceContent',
        component: disabled ? 'Render' : 'InputTextArea',
        slotRender: (text) => {
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>暂无</span>;
          }
        },
        maxLength: 200,
        allowClear: true,
        autoSize: { minRows: 3, maxRows: 4 },
        showCount: true,
        colSpan: 2,
        disabled,
      },
      {
        label: '三、评标方法及标准',
        field: 'evaluationTitle',
        component: 'Title',
      },
      {
        label: '评分标准',
        field: 'evalFileURL',
        placeholder: '请选择评标方法',
        component: 'Render',
        // colSpan: radioState.evalStyle == `${getTenantID()}${ILoadMapTypeAll?.EVALSTYLE_TYPE}1003` ? 0 : 1,
        colSpan: 2,
        slotRender: (text) => {
          let fileName = 'evalFileURL';
          return (
            <div className="criteria-btnStyle">
              <div style={{ flex: 'auto', alignItems: 'center' }}>
                {!disabled ? (
                  <UploadFormCommon
                    form={formRef}
                    fileFormName={fileName}
                    spanCol={24}
                    inRowProportion={24}
                    name={'attachFile'}
                    required={false}
                    accept={'.doc|.docx'}
                    url={'/purchaseSourceController/uploadFile'}
                    downloadUrl={'/purchaseSourceController/downloadFile'}
                    fileFormDelName={'delFile'}
                    delFunc={(delFilePath: string) => {
                      handleDelFileFn(delFilePath, fileName);
                    }}
                    uploadSuccessCallback={(attachPaths) => {
                      handleAddFileFn(attachPaths, fileName);
                    }}
                    defaultFiles={text}
                    maxFile={1}
                    hintTitle={'且只能上传 1 个！'}
                    fieldBusiPath={'purchase/source'}
                    isShowUploadBtn={true}
                  >
                    上传
                  </UploadFormCommon>
                ) : (
                  <div
                    style={{
                      height: '100%',
                      display: 'flex',
                      alignItems: 'center',
                      marginLeft: '8px',
                    }}
                  >
                    {radioState?.[fileName]
                      ? splitFileUrl(radioState?.[fileName])?.map((e) => {
                          return (
                            <Tooltip title={e.attachName} key={new Date().getTime() * 25615265152 + e?.attachName}>
                              <a
                                onClick={() => {
                                  message.success('下载中，请稍后...');
                                  downloadTemplate('/purchaseSourceController/downloadFile', e?.attachName, e?.attachUrl, () => {});
                                }}
                              >
                                <MyIcon type="icon-file-text-fill" />
                                &nbsp;
                                {getFileNameNotType(e.attachName, 8)}
                              </a>
                            </Tooltip>
                          );
                        })
                      : '--'}
                  </div>
                )}
              </div>
              <div className="criteria-btnStyle-bottomIcon">
                <a onClick={() => {}}>
                  <Tooltip title={`下载模板`}>
                    <VerticalAlignBottomOutlined />
                  </Tooltip>
                </a>
              </div>
            </div>
          );
        },
      },
      {
        label: '四、采购需求及合同范本',
        field: 'requirements',
        component: 'Title',
      },
      {
        label: '统一合同范本',
        field: 'templateFlag',
        component: 'Render',
        colSpan: 2,
        slotRender: (text: string = '0') => {
          let name = '';
          if (text == '1') {
            name = '是';
          } else {
            name = '否';
          }
          return (
            <>
              {disabled ? (
                <span style={{ paddingLeft: 8 }}>{name}</span>
              ) : (
                <TagSelect
                  colSpan={24}
                  formLabel={''}
                  formName={'templateFlag'}
                  defalultKeys={Number(text)}
                  onChange={(value) => {
                    changeRadio(value, 'templateFlag');
                  }}
                  radioList={[
                    {
                      value: 1,
                      name: '是',
                    },
                    {
                      value: 0,
                      name: '否',
                    },
                  ]}
                  radioDisabled={disabled}
                />
              )}
            </>
          );
        },
      },
      {
        label: '合同范本',
        field: 'contract',
        component: 'Input',
        placeholder: '请选择合同范本',
        message: '请选择合同范本',
        disabled: true,
        required: true,
        colSpan: Number(radioState.templateFlag) == 1 ? 2 : 0,
        contentAfter: (
          <a
            onClick={() => {
              setIsShow(true);
            }}
          >
            <SearchOutlined />
          </a>
        ),
      },
      {
        label: '合同文本',
        field: 'contractURL',
        component: 'Render',
        required: true,
        colSpan: Number(radioState.templateFlag) == 0 ? 2 : radioState?.templateFlag == undefined ? 2 : 0,
        slotRender: (text) => {
          const fileName = 'contractURL';
          return (
            <div className="criteria-btnStyle">
              <div style={{ flex: 'auto', alignItems: 'center' }}>
                {!disabled ? (
                  <UploadFormCommon
                    form={formRef}
                    fileFormName={fileName}
                    spanCol={24}
                    inRowProportion={24}
                    name={'attachFile'}
                    required={true}
                    accept={'.doc|.docx'}
                    url={'/purchaseSourceController/uploadFile'}
                    downloadUrl={'/purchaseSourceController/downloadFile'}
                    fileFormDelName={'delFile'}
                    maxFile={1}
                    delFunc={(delFilePath: string) => {
                      handleDelFileFn(delFilePath, fileName);
                    }}
                    uploadSuccessCallback={(attachPaths) => {
                      handleAddFileFn(attachPaths, fileName);
                    }}
                    defaultFiles={text}
                    hintTitle={'且只能上传 1 个！'}
                    fieldBusiPath={'purchase/source'}
                    isShowUploadBtn={true}
                  >
                    上传
                  </UploadFormCommon>
                ) : (
                  <div
                    style={{
                      height: '100%',
                      display: 'flex',
                      alignItems: 'center',
                      marginLeft: '8px',
                    }}
                  >
                    {radioState?.[fileName]
                      ? splitFileUrl(radioState?.[fileName])?.map((e) => {
                          return (
                            <Tooltip title={e.attachName} key={new Date().getTime() * 25615265152 + e?.attachName}>
                              <a
                                onClick={() => {
                                  message.success('下载中，请稍后...');
                                  downloadTemplate('/purchaseSourceController/downloadFile', e?.attachName, e?.attachUrl, () => {});
                                }}
                              >
                                <MyIcon type="icon-file-text-fill" />
                                &nbsp;
                                {getFileNameNotType(e.attachName, 8)}
                              </a>
                            </Tooltip>
                          );
                        })
                      : '--'}
                  </div>
                )}
              </div>
              <div className="criteria-btnStyle-bottomIcon">
                <a onClick={() => {}}>
                  <Tooltip title={`下载模板`}>
                    <VerticalAlignBottomOutlined />
                  </Tooltip>
                </a>
              </div>
            </div>
          );
        },
      },
      {
        label: '采购需求',
        field: 'needFileURL',
        component: 'Render',
        colSpan: 2,
        slotRender: (text) => {
          const fileName = 'needFileURL';
          return (
            <>
              {!disabled ? (
                <UploadFormCommon
                  form={formRef}
                  fileFormName={fileName}
                  spanCol={24}
                  inRowProportion={24}
                  name={'attachFile'}
                  required={false}
                  accept={'.doc|.docx'}
                  url={'/purchaseSourceController/uploadFile'}
                  downloadUrl={'/purchaseSourceController/downloadFile'}
                  fileFormDelName={'delFile'}
                  maxFile={1}
                  delFunc={(delFilePath: string) => {
                    handleDelFileFn(delFilePath, fileName);
                  }}
                  uploadSuccessCallback={(attachPaths) => {
                    handleAddFileFn(attachPaths, fileName);
                  }}
                  defaultFiles={text}
                  hintTitle={'且只能上传 1 个！'}
                  fieldBusiPath={'purchase/source'}
                  isShowUploadBtn={true}
                >
                  上传
                </UploadFormCommon>
              ) : (
                <div
                  style={{
                    height: '100%',
                    display: 'flex',
                    alignItems: 'center',
                    marginLeft: '8px',
                  }}
                >
                  {radioState?.[fileName]
                    ? splitFileUrl(radioState?.[fileName])?.map((e) => {
                        return (
                          <Tooltip title={e.attachName} key={new Date().getTime() * 25615265152 + e?.attachName}>
                            <a
                              onClick={() => {
                                message.success('下载中，请稍后...');
                                downloadTemplate('/purchaseSourceController/downloadFile', e?.attachName, e?.attachUrl, () => {});
                              }}
                            >
                              <MyIcon type="icon-file-text-fill" />
                              &nbsp;
                              {getFileNameNotType(e.attachName, 8)}
                            </a>
                          </Tooltip>
                        );
                      })
                    : '--'}
                </div>
              )}
            </>
          );
        },
      },
      {
        label: '五、其他要求',
        field: 'baseInfoTitle',
        component: 'Title',
      },
      {
        label: '履约保证金',
        field: 'bidMarginFlag',
        component: 'Render',
        colSpan: 2,
        slotRender: (text: string = '1') => {
          let name = '';
          if (text == '1') {
            name = '缴纳';
          } else {
            name = '不缴纳';
          }
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>{name}</span>;
          } else {
            return (
              <TagSelect
                colSpan={24}
                formLabel={''}
                formName={'bidMarginFlag'}
                onChange={(value) => {
                  changeRadio(value, 'bidMarginFlag');
                }}
                defalultKeys={Number(text)}
                radioDisabled={disabled}
                radioList={[
                  {
                    value: 1,
                    name: '缴纳',
                  },
                  {
                    value: 0,
                    name: '不缴纳',
                  },
                ]}
              />
            );
          }
        },
      },
      {
        label: '合同金额的',
        field: 'bidMargin',
        component: 'InputNumber',
        type: 'number',
        placeholder: '不得超过10%',
        contentAfter: '%',
        min: 0,
        max: 10,
        step: '0.01',
        required: true,
        colSpan: radioState?.bidMarginFlag == 0 || radioState?.bidMarginFlag == null ? 0 : 1,
        disabled,
      },
      // {
      //   label: '缴纳时间',
      //   field: 'bidMarginTime',
      //   placeholder: '请选择缴纳时间',
      //   component: 'Render',
      //   required: true,
      //   colSpan: radioState?.bidMarginFlag == 0 || radioState?.bidMarginFlag == null ? 0 : 1,
      //   slotRender: (text) => {
      //     if (disabled) {
      //       return <div style={{ marginLeft: '8px' }}>{text ? moment(text)?.format('YYYY-MM-DD') : '--'}</div>;
      //     } else {
      //       return (
      //         <>
      //           <Form.Item
      //             name={'bidMarginTime'}
      //             rules={[
      //               {
      //                 required: true,
      //                 message: '请选择缴纳时间',
      //               },
      //             ]}
      //           >
      //             <DatePicker />
      //           </Form.Item>
      //         </>
      //       );
      //     }
      //   },
      // },
      {
        label: '缴纳时间',
        field: 'bidMarginTime',
        placeholder: '请选择',
        component: 'Render',
        required: true,
        colSpan: radioState?.bidMarginFlag == 0 || radioState?.bidMarginFlag == null ? 0 : 1,
        ishidden: tableType == KJXYCG() || radioState?.bidMarginFlag == 0 || radioState?.bidMarginFlag == null ? true : false,
        slotRender: (text, record) => {
          if (disabled) {
            return <div style={{ marginLeft: '8px' }}>{text ? text : <span style={{ color: '#ccc' }}>--</span>}</div>;
          } else {
            return (
              <>
                <Form.Item
                  name={'bidMarginTime'}
                  rules={[
                    {
                      required: true,
                      message: '请输入',
                    },
                  ]}
                >
                  <Input placeholder="请输入缴纳时间" />
                </Form.Item>
              </>
            );
          }
        },
      },
      {
        label: (
          <div>
            <span>六、正式招标文件</span>
            <span style={{ color: 'red', fontSize: '14px' }}>（采购文件定稿后上传）</span>
          </div>
        ),
        field: 'documentsTitle',
        component: 'Title',
      },
      {
        label: '正式采购文件',
        field: 'busiFileURL',
        component: 'Render',
        colSpan: 2,
        slotRender: (text) => {
          const fileName = 'busiFileURL';
          return (
            <>
              {!disabled ? (
                <UploadFormCommon
                  form={formRef}
                  fileFormName={fileName}
                  spanCol={24}
                  inRowProportion={24}
                  name={'attachFile'}
                  required={false}
                  accept={'.doc|.docx'}
                  url={'/purchaseSourceController/uploadFile'}
                  downloadUrl={'/purchaseSourceController/downloadFile'}
                  fileFormDelName={'delFile'}
                  maxFile={1}
                  delFunc={(delFilePath: string) => {
                    handleDelFileFn(delFilePath, fileName);
                  }}
                  uploadSuccessCallback={(attachPaths) => {
                    handleAddFileFn(attachPaths, fileName);
                  }}
                  defaultFiles={text}
                  hintTitle={'且只能上传 1 个！'}
                  fieldBusiPath={'purchase/source'}
                  isShowUploadBtn={true}
                >
                  上传
                </UploadFormCommon>
              ) : (
                <div
                  style={{
                    height: '100%',
                    display: 'flex',
                    alignItems: 'center',
                    marginLeft: '8px',
                  }}
                >
                  {radioState?.[fileName]
                    ? splitFileUrl(radioState?.[fileName])?.map((e) => {
                        return (
                          <Tooltip title={e.attachName} key={new Date().getTime() * 25615265152 + e?.attachName}>
                            <a
                              onClick={() => {
                                message.success('下载中，请稍后...');
                                downloadTemplate('/purchaseSourceController/downloadFile', e?.attachName, e?.attachUrl, () => {});
                              }}
                            >
                              <MyIcon type="icon-file-text-fill" />
                              &nbsp;
                              {getFileNameNotType(e.attachName, 8)}
                            </a>
                          </Tooltip>
                        );
                      })
                    : '--'}
                </div>
              )}
            </>
          );
        },
      },
      {
        label: '招标文件',
        field: 'bidFileURL',
        component: 'Render',
        colSpan: 2,
        slotRender: (text) => {
          const fileName = 'bidFileURL';
          return (
            <>
              {!disabled ? (
                <UploadFormCommon
                  form={formRef}
                  fileFormName={fileName}
                  spanCol={24}
                  inRowProportion={24}
                  name={'attachFile'}
                  required={false}
                  accept={'.doc|.docx'}
                  url={'/purchaseSourceController/uploadFile'}
                  downloadUrl={'/purchaseSourceController/downloadFile'}
                  fileFormDelName={'delFile'}
                  maxFile={1}
                  delFunc={(delFilePath: string) => {
                    handleDelFileFn(delFilePath, fileName);
                  }}
                  uploadSuccessCallback={(attachPaths) => {
                    handleAddFileFn(attachPaths, fileName);
                  }}
                  defaultFiles={text}
                  hintTitle={'且只能上传 1 个！'}
                  fieldBusiPath={'purchase/source'}
                  isShowUploadBtn={true}
                >
                  上传
                </UploadFormCommon>
              ) : (
                <div
                  style={{
                    height: '100%',
                    display: 'flex',
                    alignItems: 'center',
                    marginLeft: '8px',
                  }}
                >
                  {radioState?.[fileName]
                    ? splitFileUrl(radioState?.[fileName])?.map((e) => {
                        return (
                          <Tooltip title={e.attachName} key={new Date().getTime() * 25615265152 + e?.attachName}>
                            <a
                              onClick={() => {
                                message.success('下载中，请稍后...');
                                downloadTemplate('/purchaseSourceController/downloadFile', e?.attachName, e?.attachUrl, () => {});
                              }}
                            >
                              <MyIcon type="icon-file-text-fill" />
                              &nbsp;
                              {getFileNameNotType(e.attachName, 8)}
                            </a>
                          </Tooltip>
                        );
                      })
                    : '--'}
                </div>
              )}
            </>
          );
        },
      },
    ];
  } else if (tableType == BJXJ()) {
    // 9
    return [
      {
        label: '一、基本信息',
        field: 'baseInfoTitle',
        component: 'Title',
      },
      {
        label: '标包名称',
        field: 'packName',
        component: 'Input',
        disabled: true,
      },
      {
        label: '包号',
        field: 'packCode',
        component: 'Input',
        disabled: true,
      },
      {
        label: '所属行业',
        field: 'industryKind',
        component: 'Select',
        fieldNames: { label: 'name', value: 'value' },
        options: industry_involveds,
        required: true,
        disabled,
      },
      {
        label: '项目属性',
        field: 'supplyType',
        component: 'Render',
        slotRender: (text) => {
          let name = '';
          if (text == `${getTenantID()}${ILoadMapTypeAll?.PURCHASE_CATEGORY}1000`) {
            text = '1';
            name = '货物类';
          } else {
            text = '0';
            name = '服务类';
          }
          return (
            <>
              {disabled ? (
                <span style={{ paddingLeft: 8 }}>{name}</span>
              ) : (
                <TagSelect colSpan={24} formLabel={''} formName={'supplyType'} defalultKeys={text} radioList={supplyTypeList} radioDisabled={true} />
              )}
            </>
          );
        },
      },
      {
        label: '预算金额',
        field: 'expectSum',
        component: 'InputNumber',
        formatter: (value: number) => {
          if (value) {
            return Number(value).toFixed(2);
          }
        },
        contentAfter: '元',
        disabled: true,
      },
      {
        label: '最高限价',
        field: 'expectCeilSum',
        component: 'InputNumber',
        formatter: (value: number) => {
          if (value) {
            return Number(value).toFixed(2);
          }
        },
        min: 1,
        contentAfter: '元',
        disabled,
        required: true,
      },
      {
        label: '拟采用采购方式',
        field: 'procureReal',
        component: 'Input',
        disabled: true,
      },
      {
        label: '投标有效期',
        field: disabled ? 'Render' : 'bidPeriodDay',
        placeholder: '请选择投标有效期',
        component: 'Render',
        required: true,
        slotRender: (text) => {
          return (
            <>
              <div className="criteria-btnStyle">
                <div style={{ flex: 'auto', alignItems: 'center' }}>
                  {disabled ? (
                    <div
                      className={'formItem-bidPeriodDay'}
                      style={{ paddingLeft: 8, display: 'flex', alignItems: 'center', overflow: 'hidden', height: '100%' }}
                    >
                      <span>{infoState?.bidPeriodDay || '--'}</span>
                    </div>
                  ) : (
                    <Form.Item
                      name={'bidPeriodDay'}
                      className={'formItem-bidPeriodDay'}
                      rules={[
                        {
                          required: true,
                          message: '请选择投标有效期',
                        },
                        {
                          pattern: RegularExpression.integerNumber,
                          message: '输入的投标有效期必须是正整数',
                        },
                      ]}
                    >
                      <AutoComplete
                        value={text}
                        disabled={disabled}
                        placeholder="请选择/输入投标有效期"
                        defaultValue={'60'}
                        options={[
                          {
                            label: '60',
                            value: '60',
                          },
                          {
                            label: '90',
                            value: '90',
                          },
                          {
                            label: '120',
                            value: '120',
                          },
                        ]}
                      />
                    </Form.Item>
                  )}
                </div>
                <div className="criteria-btnStyle-bottomIcon">日</div>
              </div>
            </>
          );
          // }
        },
      },
      {
        label: '是否科研仪器设备',
        field: 'sciequipFlag',
        component: 'Render',
        colSpan: radioState?.supplyType == 0 ? 1 : 0,
        required: true,
        slotRender: (text: string = '0') => {
          let name = '';
          if (text == '1') {
            name = '是';
          } else {
            name = '否';
          }

          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>{name}</span>;
          } else {
            return (
              <TagSelect
                colSpan={24}
                formLabel={''}
                formName={'sciequipFlag'}
                defalultKeys={Number(text)}
                radioList={[
                  {
                    value: 1,
                    name: '是',
                  },
                  {
                    value: 0,
                    name: '否',
                  },
                ]}
                radioDisabled={disabled}
              />
            );
          }
        },
      },
      {
        label: '是否接受进口',
        field: 'importFlag',
        component: 'Render',
        colSpan: radioState?.supplyType == 0 ? 1 : 0,
        required: true,
        slotRender: (text: string = '0', record: Record<string, any>) => {
          let name = '';
          if (text == '1') {
            name = '是';
          } else {
            name = '否';
          }

          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>{name}</span>;
          } else {
            return (
              <TagSelect
                colSpan={24}
                formLabel={''}
                formName={'importFlag'}
                defalultKeys={Number(text)}
                radioList={[
                  {
                    value: 1,
                    name: '是',
                  },
                  {
                    value: 0,
                    name: '否',
                  },
                ]}
                radioDisabled={disabled}
              />
            );
          }
        },
      },
      {
        label: '是否单一产品采购项目',
        field: 'productFlag',
        component: 'Render',
        required: true,
        colSpan: radioState?.supplyType == 0 ? (radioState.productFlag == 0 || radioState.productFlag == null ? 2 : 1) : 0,
        slotRender: (text: any = 0) => {
          let name = '';
          if (text == '1') {
            name = '是';
          } else {
            name = '否';
          }
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>{name}</span>;
          } else {
            return (
              <TagSelect
                colSpan={24}
                formLabel={''}
                formName={'productFlag'}
                onChange={(value) => {
                  changeRadio(value, 'productFlag');
                }}
                defalultKeys={Number(text)}
                radioList={[
                  {
                    value: 1,
                    name: '是',
                  },
                  {
                    value: 0,
                    name: '否',
                  },
                ]}
                radioDisabled={disabled}
              />
            );
          }
        },
      },
      {
        label: '核心产品',
        field: 'productName',
        component: 'Input',
        disabled,
        required: true,
        colSpan: radioState?.supplyType == 0 ? (radioState.productFlag == 0 || radioState.productFlag == null ? 0 : 1) : 0,
      },
      {
        label: '二、投标人/供应商要求',
        field: 'baseInfoTitle',
        component: 'Title',
      },
      {
        label: '是否接受联合体',
        field: 'complexFlag',
        component: 'Render',
        colSpan: 2,
        required: true,
        slotRender: (text: string = '0') => {
          let name = '';
          if (text == '1') {
            name = '是';
          } else {
            name = '否';
          }
          return (
            <>
              {disabled ? (
                <span style={{ paddingLeft: 8 }}>{name}</span>
              ) : (
                <TagSelect
                  colSpan={24}
                  formLabel={''}
                  formName={'complexFlag'}
                  defalultKeys={Number(text)}
                  radioList={[
                    {
                      value: 1,
                      name: '是',
                    },
                    {
                      value: 0,
                      name: '否',
                    },
                  ]}
                  radioDisabled={disabled}
                />
              )}
            </>
          );
        },
      },
      {
        label: '供应商特定资格要求',
        field: 'sourceContent',
        component: disabled ? 'Render' : 'InputTextArea',
        slotRender: (text) => {
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>暂无</span>;
          }
        },
        maxLength: 200,
        allowClear: true,
        autoSize: { minRows: 3, maxRows: 4 },
        showCount: true,
        colSpan: 2,
        disabled,
      },
      {
        label: '三、采购需求及合同范本',
        field: 'requirements',
        component: 'Title',
      },
      {
        label: '统一合同范本',
        field: 'templateFlag',
        component: 'Render',
        colSpan: 2,
        slotRender: (text: string = '0') => {
          let name = '';
          if (text == '1') {
            name = '是';
          } else {
            name = '否';
          }
          return (
            <>
              {disabled ? (
                <span style={{ paddingLeft: 8 }}>{name}</span>
              ) : (
                <TagSelect
                  colSpan={24}
                  formLabel={''}
                  formName={'templateFlag'}
                  defalultKeys={Number(text)}
                  onChange={(value) => {
                    changeRadio(value, 'templateFlag');
                  }}
                  radioList={[
                    {
                      value: 1,
                      name: '是',
                    },
                    {
                      value: 0,
                      name: '否',
                    },
                  ]}
                  radioDisabled={disabled}
                />
              )}
            </>
          );
        },
      },
      {
        label: '合同范本',
        field: 'contract',
        component: 'Input',
        placeholder: '请选择合同范本',
        message: '请选择合同范本',
        disabled: true,
        required: true,
        colSpan: Number(radioState.templateFlag) == 1 ? 2 : 0,
        contentAfter: (
          <a
            onClick={() => {
              setIsShow(true);
            }}
          >
            <SearchOutlined />
          </a>
        ),
      },
      {
        label: '合同文本',
        field: 'contractURL',
        component: 'Render',
        required: true,
        colSpan: Number(radioState.templateFlag) == 0 ? 2 : radioState?.templateFlag == undefined ? 2 : 0,
        slotRender: (text) => {
          const fileName = 'contractURL';
          return (
            <div className="criteria-btnStyle">
              <div style={{ flex: 'auto', alignItems: 'center' }}>
                {!disabled ? (
                  <UploadFormCommon
                    form={formRef}
                    fileFormName={fileName}
                    spanCol={24}
                    inRowProportion={24}
                    name={'attachFile'}
                    required={true}
                    accept={'.doc|.docx'}
                    url={'/purchaseSourceController/uploadFile'}
                    downloadUrl={'/purchaseSourceController/downloadFile'}
                    fileFormDelName={'delFile'}
                    maxFile={1}
                    delFunc={(delFilePath: string) => {
                      handleDelFileFn(delFilePath, fileName);
                    }}
                    uploadSuccessCallback={(attachPaths) => {
                      handleAddFileFn(attachPaths, fileName);
                    }}
                    defaultFiles={text}
                    hintTitle={'且只能上传 1 个！'}
                    fieldBusiPath={'purchase/source'}
                    isShowUploadBtn={true}
                  >
                    上传
                  </UploadFormCommon>
                ) : (
                  <div
                    style={{
                      height: '100%',
                      display: 'flex',
                      alignItems: 'center',
                      marginLeft: '8px',
                    }}
                  >
                    {radioState?.[fileName]
                      ? splitFileUrl(radioState?.[fileName])?.map((e) => {
                          return (
                            <Tooltip title={e.attachName} key={new Date().getTime() * 25615265152 + e?.attachName}>
                              <a
                                onClick={() => {
                                  message.success('下载中，请稍后...');
                                  downloadTemplate('/purchaseSourceController/downloadFile', e?.attachName, e?.attachUrl, () => {});
                                }}
                              >
                                <MyIcon type="icon-file-text-fill" />
                                &nbsp;
                                {getFileNameNotType(e.attachName, 8)}
                              </a>
                            </Tooltip>
                          );
                        })
                      : '--'}
                  </div>
                )}
              </div>
              <div className="criteria-btnStyle-bottomIcon">
                <a onClick={() => {}}>
                  <Tooltip title={`下载模板`}>
                    <VerticalAlignBottomOutlined />
                  </Tooltip>
                </a>
              </div>
            </div>
          );
        },
      },
      {
        label: '采购需求',
        field: 'needFileURL',
        component: 'Render',
        colSpan: 2,
        slotRender: (text) => {
          const fileName = 'needFileURL';
          return (
            <>
              {!disabled ? (
                <UploadFormCommon
                  form={formRef}
                  fileFormName={fileName}
                  spanCol={24}
                  inRowProportion={24}
                  name={'attachFile'}
                  required={false}
                  accept={'.doc|.docx'}
                  url={'/purchaseSourceController/uploadFile'}
                  downloadUrl={'/purchaseSourceController/downloadFile'}
                  fileFormDelName={'delFile'}
                  maxFile={1}
                  delFunc={(delFilePath: string) => {
                    handleDelFileFn(delFilePath, fileName);
                  }}
                  uploadSuccessCallback={(attachPaths) => {
                    handleAddFileFn(attachPaths, fileName);
                  }}
                  defaultFiles={text}
                  hintTitle={'且只能上传 1 个！'}
                  fieldBusiPath={'purchase/source'}
                  isShowUploadBtn={true}
                >
                  上传
                </UploadFormCommon>
              ) : (
                <div
                  style={{
                    height: '100%',
                    display: 'flex',
                    alignItems: 'center',
                    marginLeft: '8px',
                  }}
                >
                  {radioState?.[fileName]
                    ? splitFileUrl(radioState?.[fileName])?.map((e) => {
                        return (
                          <Tooltip title={e.attachName} key={new Date().getTime() * 25615265152 + e?.attachName}>
                            <a
                              onClick={() => {
                                message.success('下载中，请稍后...');
                                downloadTemplate('/purchaseSourceController/downloadFile', e?.attachName, e?.attachUrl, () => {});
                              }}
                            >
                              <MyIcon type="icon-file-text-fill" />
                              &nbsp;
                              {getFileNameNotType(e.attachName, 8)}
                            </a>
                          </Tooltip>
                        );
                      })
                    : '--'}
                </div>
              )}
            </>
          );
        },
      },
      {
        label: '四、其他要求',
        field: 'baseInfoTitle',
        component: 'Title',
      },
      {
        label: '履约保证金',
        field: 'bidMarginFlag',
        component: 'Render',
        colSpan: 2,
        slotRender: (text: string = '1') => {
          let name = '';
          if (text == '1') {
            name = '缴纳';
          } else {
            name = '不缴纳';
          }
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>{name}</span>;
          } else {
            return (
              <TagSelect
                colSpan={24}
                formLabel={''}
                formName={'bidMarginFlag'}
                onChange={(value) => {
                  changeRadio(value, 'bidMarginFlag');
                }}
                defalultKeys={Number(text)}
                radioDisabled={disabled}
                radioList={[
                  {
                    value: 1,
                    name: '缴纳',
                  },
                  {
                    value: 0,
                    name: '不缴纳',
                  },
                ]}
              />
            );
          }
        },
      },
      {
        label: '合同金额的',
        field: 'bidMargin',
        component: 'InputNumber',
        type: 'number',
        placeholder: '不得超过10%',
        contentAfter: '%',
        min: 0,
        max: 10,
        step: '0.01',
        required: true,
        colSpan: radioState?.bidMarginFlag == 0 || radioState?.bidMarginFlag == null ? 0 : 1,
        disabled,
      },
      // {
      //   label: '缴纳时间',
      //   field: 'bidMarginTime',
      //   placeholder: '请选择缴纳时间',
      //   component: 'Render',
      //   required: true,
      //   colSpan: radioState?.bidMarginFlag == 0 || radioState?.bidMarginFlag == null ? 0 : 1,
      //   slotRender: (text) => {
      //     if (disabled) {
      //       return <div style={{ marginLeft: '8px' }}>{text ? moment(text)?.format('YYYY-MM-DD') : '--'}</div>;
      //     } else {
      //       return (
      //         <>
      //           <Form.Item
      //             name={'bidMarginTime'}
      //             rules={[
      //               {
      //                 required: true,
      //                 message: '请选择缴纳时间',
      //               },
      //             ]}
      //           >
      //             <DatePicker />
      //           </Form.Item>
      //         </>
      //       );
      //     }
      //   },
      // },
      {
        label: '缴纳时间',
        field: 'bidMarginTime',
        placeholder: '请选择',
        component: 'Render',
        required: true,
        colSpan: radioState?.bidMarginFlag == 0 || radioState?.bidMarginFlag == null ? 0 : 1,
        ishidden: tableType == KJXYCG() || radioState?.bidMarginFlag == 0 || radioState?.bidMarginFlag == null ? true : false,
        slotRender: (text, record) => {
          if (disabled) {
            return <div style={{ marginLeft: '8px' }}>{text ? text : <span style={{ color: '#ccc' }}>--</span>}</div>;
          } else {
            return (
              <>
                <Form.Item
                  name={'bidMarginTime'}
                  rules={[
                    {
                      required: true,
                      message: '请输入',
                    },
                  ]}
                >
                  <Input placeholder="请输入缴纳时间" />
                </Form.Item>
              </>
            );
          }
        },
      },
      {
        label: (
          <div>
            <span>五、正式招标文件</span>
            <span style={{ color: 'red', fontSize: '14px' }}>（采购文件定稿后上传）</span>
          </div>
        ),
        field: 'documentsTitle',
        component: 'Title',
      },
      {
        label: '正式采购文件',
        field: 'busiFileURL',
        component: 'Render',
        colSpan: 2,
        slotRender: (text) => {
          const fileName = 'busiFileURL';
          return (
            <>
              {!disabled ? (
                <UploadFormCommon
                  form={formRef}
                  fileFormName={fileName}
                  spanCol={24}
                  inRowProportion={24}
                  name={'attachFile'}
                  required={false}
                  accept={'.doc|.docx'}
                  url={'/purchaseSourceController/uploadFile'}
                  downloadUrl={'/purchaseSourceController/downloadFile'}
                  fileFormDelName={'delFile'}
                  maxFile={1}
                  delFunc={(delFilePath: string) => {
                    handleDelFileFn(delFilePath, fileName);
                  }}
                  uploadSuccessCallback={(attachPaths) => {
                    handleAddFileFn(attachPaths, fileName);
                  }}
                  defaultFiles={text}
                  hintTitle={'且只能上传 1 个！'}
                  fieldBusiPath={'purchase/source'}
                  isShowUploadBtn={true}
                >
                  上传
                </UploadFormCommon>
              ) : (
                <div
                  style={{
                    height: '100%',
                    display: 'flex',
                    alignItems: 'center',
                    marginLeft: '8px',
                  }}
                >
                  {radioState?.[fileName]
                    ? splitFileUrl(radioState?.[fileName])?.map((e) => {
                        return (
                          <Tooltip title={e.attachName} key={new Date().getTime() * 25615265152 + e?.attachName}>
                            <a
                              onClick={() => {
                                message.success('下载中，请稍后...');
                                downloadTemplate('/purchaseSourceController/downloadFile', e?.attachName, e?.attachUrl, () => {});
                              }}
                            >
                              <MyIcon type="icon-file-text-fill" />
                              &nbsp;
                              {getFileNameNotType(e.attachName, 8)}
                            </a>
                          </Tooltip>
                        );
                      })
                    : '--'}
                </div>
              )}
            </>
          );
        },
      },
      {
        label: '招标文件',
        field: 'bidFileURL',
        component: 'Render',
        colSpan: 2,
        slotRender: (text) => {
          const fileName = 'bidFileURL';
          return (
            <>
              {!disabled ? (
                <UploadFormCommon
                  form={formRef}
                  fileFormName={fileName}
                  spanCol={24}
                  inRowProportion={24}
                  name={'attachFile'}
                  required={false}
                  accept={'.doc|.docx'}
                  url={'/purchaseSourceController/uploadFile'}
                  downloadUrl={'/purchaseSourceController/downloadFile'}
                  fileFormDelName={'delFile'}
                  maxFile={1}
                  delFunc={(delFilePath: string) => {
                    handleDelFileFn(delFilePath, fileName);
                  }}
                  uploadSuccessCallback={(attachPaths) => {
                    handleAddFileFn(attachPaths, fileName);
                  }}
                  defaultFiles={text}
                  hintTitle={'且只能上传 1 个！'}
                  fieldBusiPath={'purchase/source'}
                  isShowUploadBtn={true}
                >
                  上传
                </UploadFormCommon>
              ) : (
                <div
                  style={{
                    height: '100%',
                    display: 'flex',
                    alignItems: 'center',
                    marginLeft: '8px',
                  }}
                >
                  {radioState?.[fileName]
                    ? splitFileUrl(radioState?.[fileName])?.map((e) => {
                        return (
                          <Tooltip title={e.attachName} key={new Date().getTime() * 25615265152 + e?.attachName}>
                            <a
                              onClick={() => {
                                message.success('下载中，请稍后...');
                                downloadTemplate('/purchaseSourceController/downloadFile', e?.attachName, e?.attachUrl, () => {});
                              }}
                            >
                              <MyIcon type="icon-file-text-fill" />
                              &nbsp;
                              {getFileNameNotType(e.attachName, 8)}
                            </a>
                          </Tooltip>
                        );
                      })
                    : '--'}
                </div>
              )}
            </>
          );
        },
      },
    ];
  } else if (tableType == BJKJ()) {
    // 10
    return [
      {
        label: '一、基本信息',
        field: 'baseInfoTitle',
        component: 'Title',
      },
      {
        label: '标包名称',
        field: 'packName',
        component: 'Input',
        disabled: true,
      },
      {
        label: '包号',
        field: 'packCode',
        component: 'Input',
        disabled: true,
      },
      {
        label: '所属行业',
        field: 'industryKind',
        component: 'Select',
        fieldNames: { label: 'name', value: 'value' },
        options: industry_involveds,
        required: true,
        disabled,
      },
      {
        label: '项目属性',
        field: 'supplyType',
        component: 'Render',
        slotRender: (text) => {
          let name = '';
          if (text == `${getTenantID()}${ILoadMapTypeAll?.PURCHASE_CATEGORY}1000`) {
            text = '1';
            name = '货物类';
          } else {
            text = '0';
            name = '服务类';
          }
          return (
            <>
              {disabled ? (
                <span style={{ paddingLeft: 8 }}>{name}</span>
              ) : (
                <TagSelect colSpan={24} formLabel={''} formName={'supplyType'} defalultKeys={text} radioList={supplyTypeList} radioDisabled={true} />
              )}
            </>
          );
        },
      },
      {
        label: '预算金额',
        field: 'expectSum',
        component: 'InputNumber',
        formatter: (value: number) => {
          if (value) {
            return Number(value).toFixed(2);
          }
        },
        contentAfter: '元',
        disabled: true,
      },
      {
        label: '最高限价',
        field: 'expectCeilSum',
        component: 'InputNumber',
        formatter: (value: number) => {
          if (value) {
            return Number(value).toFixed(2);
          }
        },
        min: 1,
        contentAfter: '元',
        disabled,
        required: true,
      },
      {
        label: '拟采用采购方式',
        field: 'procureReal',
        component: 'Input',
        disabled: true,
      },
      {
        label: '投标有效期',
        field: disabled ? 'Render' : 'bidPeriodDay',
        placeholder: '请选择投标有效期',
        component: 'Render',
        required: true,
        slotRender: (text) => {
          return (
            <>
              <div className="criteria-btnStyle">
                <div style={{ flex: 'auto', alignItems: 'center' }}>
                  {disabled ? (
                    <div
                      className={'formItem-bidPeriodDay'}
                      style={{ paddingLeft: 8, display: 'flex', alignItems: 'center', overflow: 'hidden', height: '100%' }}
                    >
                      <span>{infoState?.bidPeriodDay || '--'}</span>
                    </div>
                  ) : (
                    <Form.Item
                      name={'bidPeriodDay'}
                      className={'formItem-bidPeriodDay'}
                      rules={[
                        {
                          required: true,
                          message: '请选择投标有效期',
                        },
                        {
                          pattern: RegularExpression.integerNumber,
                          message: '输入的投标有效期必须是正整数',
                        },
                      ]}
                    >
                      <AutoComplete
                        value={text}
                        disabled={disabled}
                        placeholder="请选择/输入投标有效期"
                        defaultValue={'60'}
                        options={[
                          {
                            label: '60',
                            value: '60',
                          },
                          {
                            label: '90',
                            value: '90',
                          },
                          {
                            label: '120',
                            value: '120',
                          },
                        ]}
                      />
                    </Form.Item>
                  )}
                </div>
                <div className="criteria-btnStyle-bottomIcon">日</div>
              </div>
            </>
          );
          // }
        },
      },
      {
        label: '是否科研仪器设备',
        field: 'sciequipFlag',
        component: 'Render',
        colSpan: radioState?.supplyType == 0 ? 1 : 0,
        required: true,
        slotRender: (text: string = '0') => {
          let name = '';
          if (text == '1') {
            name = '是';
          } else {
            name = '否';
          }

          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>{name}</span>;
          } else {
            return (
              <TagSelect
                colSpan={24}
                formLabel={''}
                formName={'sciequipFlag'}
                defalultKeys={Number(text)}
                radioList={[
                  {
                    value: 1,
                    name: '是',
                  },
                  {
                    value: 0,
                    name: '否',
                  },
                ]}
                radioDisabled={disabled}
              />
            );
          }
        },
      },
      {
        label: '是否接受进口',
        field: 'importFlag',
        component: 'Render',
        colSpan: radioState?.supplyType == 0 ? 1 : 0,
        required: true,
        slotRender: (text: string = '0', record: Record<string, any>) => {
          let name = '';
          if (text == '1') {
            name = '是';
          } else {
            name = '否';
          }

          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>{name}</span>;
          } else {
            return (
              <TagSelect
                colSpan={24}
                formLabel={''}
                formName={'importFlag'}
                defalultKeys={Number(text)}
                radioList={[
                  {
                    value: 1,
                    name: '是',
                  },
                  {
                    value: 0,
                    name: '否',
                  },
                ]}
                radioDisabled={disabled}
              />
            );
          }
        },
      },
      {
        label: '是否单一产品采购项目',
        field: 'productFlag',
        component: 'Render',
        required: true,
        colSpan: radioState?.supplyType == 0 ? (radioState.productFlag == 0 || radioState.productFlag == null ? 2 : 1) : 0,
        slotRender: (text: any = 0) => {
          let name = '';
          if (text == '1') {
            name = '是';
          } else {
            name = '否';
          }
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>{name}</span>;
          } else {
            return (
              <TagSelect
                colSpan={24}
                formLabel={''}
                formName={'productFlag'}
                onChange={(value) => {
                  changeRadio(value, 'productFlag');
                }}
                defalultKeys={Number(text)}
                radioList={[
                  {
                    value: 1,
                    name: '是',
                  },
                  {
                    value: 0,
                    name: '否',
                  },
                ]}
                radioDisabled={disabled}
              />
            );
          }
        },
      },
      {
        label: '核心产品',
        field: 'productName',
        component: 'Input',
        disabled,
        required: true,
        colSpan: radioState?.supplyType == 0 ? (radioState.productFlag == 0 || radioState.productFlag == null ? 0 : 1) : 0,
      },
      {
        label: '二、投标人/供应商要求',
        field: 'baseInfoTitle',
        component: 'Title',
      },
      {
        label: '是否接受联合体',
        field: 'complexFlag',
        component: 'Render',
        colSpan: 2,
        required: true,
        slotRender: (text: string = '0') => {
          let name = '';
          if (text == '1') {
            name = '是';
          } else {
            name = '否';
          }
          return (
            <>
              {disabled ? (
                <span style={{ paddingLeft: 8 }}>{name}</span>
              ) : (
                <TagSelect
                  colSpan={24}
                  formLabel={''}
                  formName={'complexFlag'}
                  defalultKeys={Number(text)}
                  radioList={[
                    {
                      value: 1,
                      name: '是',
                    },
                    {
                      value: 0,
                      name: '否',
                    },
                  ]}
                  radioDisabled={disabled}
                />
              )}
            </>
          );
        },
      },
      {
        label: '供应商特定资格要求',
        field: 'sourceContent',
        component: disabled ? 'Render' : 'InputTextArea',
        slotRender: (text) => {
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>暂无</span>;
          }
        },
        maxLength: 200,
        allowClear: true,
        autoSize: { minRows: 3, maxRows: 4 },
        showCount: true,
        colSpan: 2,
        disabled,
      },
      {
        label: '第一阶段入围供应商数量',
        field: 'supplierMinNum',
        component: 'Input',
        colSpan: 2,
        disabled,
      },
      {
        label: '第一阶段入围供应商评审方法',
        field: 'evalStyle',
        component: 'Render',
        colSpan: 2,
        slotRender: (text: string = `${getTenantID()}${ILoadMapTypeAll?.EVALSTYLE_TYPE}1000`) => {
          let name = '--';
          if (text == `${getTenantID()}${ILoadMapTypeAll?.EVALSTYLE_TYPE}1000`) {
            name = '质量优先法';
          } else if (text == `${getTenantID()}${ILoadMapTypeAll?.EVALSTYLE_TYPE}1001`) {
            name = '价格优先法';
          }

          return (
            <>
              {disabled ? (
                <span style={{ paddingLeft: 8 }}>{name}</span>
              ) : (
                <TagSelect
                  colSpan={24}
                  formLabel={''}
                  formName={'evalStyle'}
                  onChange={(value) => {
                    changeRadio(value, 'evalStyle');
                  }}
                  defalultKeys={text}
                  radioDisabled={disabled}
                  radioList={DYJD}
                />
              )}
            </>
          );
        },
      },
      {
        label: '确认第二阶段成交供应商方式',
        field: 'executeStyle',
        component: 'Render',
        colSpan: 2,
        slotRender: (text: string = '0') => {
          let name = '--';
          if (text == '0') {
            name = '直接选定方式';
          } else if (text == '1') {
            name = '二次竞价方式';
          } else if (text == '2') {
            name = '顺序轮候方式';
          }

          return (
            <>
              {disabled ? (
                <span style={{ paddingLeft: 8 }}>{name}</span>
              ) : (
                <TagSelect
                  colSpan={24}
                  formLabel={''}
                  formName={'executeStyle'}
                  onChange={(value) => {
                    changeRadio(value, 'executeStyle');
                  }}
                  defalultKeys={Number(text)}
                  radioDisabled={disabled}
                  radioList={[
                    {
                      value: 0,
                      name: '直接选定方式',
                    },
                    {
                      value: 1,
                      name: '二次竞价方式',
                    },
                    {
                      value: 2,
                      name: '顺序轮候方式',
                    },
                  ]}
                />
              )}
            </>
          );
        },
      },
      {
        label: '三、评标方法及标准',
        field: 'evaluationTitle',
        component: 'Title',
      },
      // {
      //   label: '评标方法',
      //   field: 'evalStyle',
      //   component: 'Render',
      //   colSpan: radioState?.evalStyle == 0 ? 1 : 2,
      //   slotRender: (text: number = 0) => {
      //     return <TagSelect
      //       colSpan={24}
      //       formLabel={''}
      //       formName={'evalStyle'}
      //       onChange={(value) => {
      //         changeRadio(value, 'evalStyle')
      //       }}
      //       defalultKeys={Number(text)}
      //       radioList={PBFF}
      //     />
      //   }
      // },
      {
        label: '评分标准',
        field: 'evalFileURL',
        placeholder: '请选择评标方法',
        component: 'Render',
        // colSpan: radioState.evalStyle == `${getTenantID()}${ILoadMapTypeAll?.EVALSTYLE_TYPE}1003` ? 0 : 1,
        colSpan: 2,
        slotRender: (text) => {
          let fileName = 'evalFileURL';
          return (
            <div className="criteria-btnStyle">
              <div style={{ flex: 'auto', alignItems: 'center' }}>
                {!disabled ? (
                  <UploadFormCommon
                    form={formRef}
                    fileFormName={fileName}
                    spanCol={24}
                    inRowProportion={24}
                    name={'attachFile'}
                    required={false}
                    accept={'.doc|.docx'}
                    url={'/purchaseSourceController/uploadFile'}
                    downloadUrl={'/purchaseSourceController/downloadFile'}
                    fileFormDelName={'delFile'}
                    delFunc={(delFilePath: string) => {
                      handleDelFileFn(delFilePath, fileName);
                    }}
                    uploadSuccessCallback={(attachPaths) => {
                      handleAddFileFn(attachPaths, fileName);
                    }}
                    defaultFiles={text}
                    maxFile={1}
                    hintTitle={'且只能上传 1 个！'}
                    fieldBusiPath={'purchase/source'}
                    isShowUploadBtn={true}
                  >
                    上传
                  </UploadFormCommon>
                ) : (
                  <div
                    style={{
                      height: '100%',
                      display: 'flex',
                      alignItems: 'center',
                      marginLeft: '8px',
                    }}
                  >
                    {radioState?.[fileName]
                      ? splitFileUrl(radioState?.[fileName])?.map((e) => {
                          return (
                            <Tooltip title={e.attachName} key={new Date().getTime() * 25615265152 + e?.attachName}>
                              <a
                                onClick={() => {
                                  message.success('下载中，请稍后...');
                                  downloadTemplate('/purchaseSourceController/downloadFile', e?.attachName, e?.attachUrl, () => {});
                                }}
                              >
                                <MyIcon type="icon-file-text-fill" />
                                &nbsp;
                                {getFileNameNotType(e.attachName, 8)}
                              </a>
                            </Tooltip>
                          );
                        })
                      : '--'}
                  </div>
                )}
              </div>
              <div className="criteria-btnStyle-bottomIcon">
                <a onClick={() => {}}>
                  <Tooltip title={`下载模板`}>
                    <VerticalAlignBottomOutlined />
                  </Tooltip>
                </a>
              </div>
            </div>
          );
        },
      },
      {
        label: '四、采购需求及合同范本',
        field: 'requirements',
        component: 'Title',
      },
      {
        label: '统一合同范本',
        field: 'templateFlag',
        component: 'Render',
        colSpan: 2,
        slotRender: (text: string = '0') => {
          let name = '';
          if (text == '1') {
            name = '是';
          } else {
            name = '否';
          }
          return (
            <>
              {disabled ? (
                <span style={{ paddingLeft: 8 }}>{name}</span>
              ) : (
                <TagSelect
                  colSpan={24}
                  formLabel={''}
                  formName={'templateFlag'}
                  defalultKeys={Number(text)}
                  onChange={(value) => {
                    changeRadio(value, 'templateFlag');
                  }}
                  radioList={[
                    {
                      value: 1,
                      name: '是',
                    },
                    {
                      value: 0,
                      name: '否',
                    },
                  ]}
                  radioDisabled={disabled}
                />
              )}
            </>
          );
        },
      },
      {
        label: '合同范本',
        field: 'contract',
        component: 'Input',
        placeholder: '请选择合同范本',
        message: '请选择合同范本',
        disabled: true,
        required: true,
        colSpan: Number(radioState.templateFlag) == 1 ? 2 : 0,
        contentAfter: (
          <a
            onClick={() => {
              setIsShow(true);
            }}
          >
            <SearchOutlined />
          </a>
        ),
      },
      {
        label: '合同文本',
        field: 'contractURL',
        component: 'Render',
        required: true,
        colSpan: Number(radioState.templateFlag) == 0 ? 2 : radioState?.templateFlag == undefined ? 2 : 0,
        slotRender: (text) => {
          const fileName = 'contractURL';
          return (
            <div className="criteria-btnStyle">
              <div style={{ flex: 'auto', alignItems: 'center' }}>
                {!disabled ? (
                  <UploadFormCommon
                    form={formRef}
                    fileFormName={fileName}
                    spanCol={24}
                    inRowProportion={24}
                    name={'attachFile'}
                    required={true}
                    accept={'.doc|.docx'}
                    url={'/purchaseSourceController/uploadFile'}
                    downloadUrl={'/purchaseSourceController/downloadFile'}
                    fileFormDelName={'delFile'}
                    maxFile={1}
                    delFunc={(delFilePath: string) => {
                      handleDelFileFn(delFilePath, fileName);
                    }}
                    uploadSuccessCallback={(attachPaths) => {
                      handleAddFileFn(attachPaths, fileName);
                    }}
                    defaultFiles={text}
                    hintTitle={'且只能上传 1 个！'}
                    fieldBusiPath={'purchase/source'}
                    isShowUploadBtn={true}
                  >
                    上传
                  </UploadFormCommon>
                ) : (
                  <div
                    style={{
                      height: '100%',
                      display: 'flex',
                      alignItems: 'center',
                      marginLeft: '8px',
                    }}
                  >
                    {radioState?.[fileName]
                      ? splitFileUrl(radioState?.[fileName])?.map((e) => {
                          return (
                            <Tooltip title={e.attachName} key={new Date().getTime() * 25615265152 + e?.attachName}>
                              <a
                                onClick={() => {
                                  message.success('下载中，请稍后...');
                                  downloadTemplate('/purchaseSourceController/downloadFile', e?.attachName, e?.attachUrl, () => {});
                                }}
                              >
                                <MyIcon type="icon-file-text-fill" />
                                &nbsp;
                                {getFileNameNotType(e.attachName, 8)}
                              </a>
                            </Tooltip>
                          );
                        })
                      : '--'}
                  </div>
                )}
              </div>
              <div className="criteria-btnStyle-bottomIcon">
                <a onClick={() => {}}>
                  <Tooltip title={`下载模板`}>
                    <VerticalAlignBottomOutlined />
                  </Tooltip>
                </a>
              </div>
            </div>
          );
        },
      },
      {
        label: '采购需求',
        field: 'needFileURL',
        component: 'Render',
        colSpan: 2,
        slotRender: (text) => {
          const fileName = 'needFileURL';
          return (
            <>
              {!disabled ? (
                <UploadFormCommon
                  form={formRef}
                  fileFormName={fileName}
                  spanCol={24}
                  inRowProportion={24}
                  name={'attachFile'}
                  required={false}
                  accept={'.doc|.docx'}
                  url={'/purchaseSourceController/uploadFile'}
                  downloadUrl={'/purchaseSourceController/downloadFile'}
                  fileFormDelName={'delFile'}
                  maxFile={1}
                  delFunc={(delFilePath: string) => {
                    handleDelFileFn(delFilePath, fileName);
                  }}
                  uploadSuccessCallback={(attachPaths) => {
                    handleAddFileFn(attachPaths, fileName);
                  }}
                  defaultFiles={text}
                  hintTitle={'且只能上传 1 个！'}
                  fieldBusiPath={'purchase/source'}
                  isShowUploadBtn={true}
                >
                  上传
                </UploadFormCommon>
              ) : (
                <div
                  style={{
                    height: '100%',
                    display: 'flex',
                    alignItems: 'center',
                    marginLeft: '8px',
                  }}
                >
                  {radioState?.[fileName]
                    ? splitFileUrl(radioState?.[fileName])?.map((e) => {
                        return (
                          <Tooltip title={e.attachName} key={new Date().getTime() * 25615265152 + e?.attachName}>
                            <a
                              onClick={() => {
                                message.success('下载中，请稍后...');
                                downloadTemplate('/purchaseSourceController/downloadFile', e?.attachName, e?.attachUrl, () => {});
                              }}
                            >
                              <MyIcon type="icon-file-text-fill" />
                              &nbsp;
                              {getFileNameNotType(e.attachName, 8)}
                            </a>
                          </Tooltip>
                        );
                      })
                    : '--'}
                </div>
              )}
            </>
          );
        },
      },
      {
        label: '五、其他要求',
        field: 'baseInfoTitle',
        component: 'Title',
      },
      {
        label: '履约保证金',
        field: 'bidMarginFlag',
        component: 'Render',
        colSpan: 2,
        slotRender: (text: string = '1') => {
          let name = '';
          if (text == '1') {
            name = '缴纳';
          } else {
            name = '不缴纳';
          }
          if (disabled) {
            return <span style={{ paddingLeft: 8 }}>{name}</span>;
          } else {
            return (
              <TagSelect
                colSpan={24}
                formLabel={''}
                formName={'bidMarginFlag'}
                onChange={(value) => {
                  changeRadio(value, 'bidMarginFlag');
                }}
                defalultKeys={Number(text)}
                radioDisabled={disabled}
                radioList={[
                  {
                    value: 1,
                    name: '缴纳',
                  },
                  {
                    value: 0,
                    name: '不缴纳',
                  },
                ]}
              />
            );
          }
        },
      },
      {
        label: '合同金额的',
        field: 'bidMargin',
        component: 'InputNumber',
        type: 'number',
        placeholder: '不得超过10%',
        contentAfter: '%',
        min: 0,
        max: 10,
        step: '0.01',
        required: true,
        colSpan: radioState?.bidMarginFlag == 0 || radioState?.bidMarginFlag == null ? 0 : 1,
        disabled,
      },
      // {
      //   label: '缴纳时间',
      //   field: 'bidMarginTime',
      //   placeholder: '请选择缴纳时间',
      //   component: 'Render',
      //   required: true,
      //   colSpan: radioState?.bidMarginFlag == 0 || radioState?.bidMarginFlag == null ? 0 : 1,
      //   slotRender: (text) => {
      //     if (disabled) {
      //       return <div style={{ marginLeft: '8px' }}>{text ? moment(text)?.format('YYYY-MM-DD') : '--'}</div>;
      //     } else {
      //       return (
      //         <>
      //           <Form.Item
      //             name={'bidMarginTime'}
      //             rules={[
      //               {
      //                 required: true,
      //                 message: '请选择缴纳时间',
      //               },
      //             ]}
      //           >
      //             <DatePicker />
      //           </Form.Item>
      //         </>
      //       );
      //     }
      //   },
      // },
      {
        label: '缴纳时间',
        field: 'bidMarginTime',
        placeholder: '请选择',
        component: 'Render',
        required: true,
        colSpan: radioState?.bidMarginFlag == 0 || radioState?.bidMarginFlag == null ? 0 : 1,
        ishidden: tableType == KJXYCG() || radioState?.bidMarginFlag == 0 || radioState?.bidMarginFlag == null ? true : false,
        slotRender: (text, record) => {
          if (disabled) {
            return <div style={{ marginLeft: '8px' }}>{text ? text : <span style={{ color: '#ccc' }}>--</span>}</div>;
          } else {
            return (
              <>
                <Form.Item
                  name={'bidMarginTime'}
                  rules={[
                    {
                      required: true,
                      message: '请输入',
                    },
                  ]}
                >
                  <Input placeholder="请输入缴纳时间" />
                </Form.Item>
              </>
            );
          }
        },
      },
      {
        label: (
          <div>
            <span>六、正式招标文件</span>
            <span style={{ color: 'red', fontSize: '14px' }}>（采购文件定稿后上传）</span>
          </div>
        ),
        field: 'documentsTitle',
        component: 'Title',
      },
      {
        label: '正式采购文件',
        field: 'busiFileURL',
        component: 'Render',
        colSpan: 2,
        slotRender: (text) => {
          const fileName = 'busiFileURL';
          return (
            <>
              {!disabled ? (
                <UploadFormCommon
                  form={formRef}
                  fileFormName={fileName}
                  spanCol={24}
                  inRowProportion={24}
                  name={'attachFile'}
                  required={false}
                  accept={'.doc|.docx'}
                  url={'/purchaseSourceController/uploadFile'}
                  downloadUrl={'/purchaseSourceController/downloadFile'}
                  fileFormDelName={'delFile'}
                  maxFile={1}
                  delFunc={(delFilePath: string) => {
                    handleDelFileFn(delFilePath, fileName);
                  }}
                  uploadSuccessCallback={(attachPaths) => {
                    handleAddFileFn(attachPaths, fileName);
                  }}
                  defaultFiles={text}
                  hintTitle={'且只能上传 1 个！'}
                  fieldBusiPath={'purchase/source'}
                  isShowUploadBtn={true}
                >
                  上传
                </UploadFormCommon>
              ) : (
                <div
                  style={{
                    height: '100%',
                    display: 'flex',
                    alignItems: 'center',
                    marginLeft: '8px',
                  }}
                >
                  {radioState?.[fileName]
                    ? splitFileUrl(radioState?.[fileName])?.map((e) => {
                        return (
                          <Tooltip title={e.attachName} key={new Date().getTime() * 25615265152 + e?.attachName}>
                            <a
                              onClick={() => {
                                message.success('下载中，请稍后...');
                                downloadTemplate('/purchaseSourceController/downloadFile', e?.attachName, e?.attachUrl, () => {});
                              }}
                            >
                              <MyIcon type="icon-file-text-fill" />
                              &nbsp;
                              {getFileNameNotType(e.attachName, 8)}
                            </a>
                          </Tooltip>
                        );
                      })
                    : '--'}
                </div>
              )}
            </>
          );
        },
      },
      {
        label: '招标文件',
        field: 'bidFileURL',
        component: 'Render',
        colSpan: 2,
        slotRender: (text) => {
          const fileName = 'bidFileURL';
          return (
            <>
              {!disabled ? (
                <UploadFormCommon
                  form={formRef}
                  fileFormName={fileName}
                  spanCol={24}
                  inRowProportion={24}
                  name={'attachFile'}
                  required={false}
                  accept={'.doc|.docx'}
                  url={'/purchaseSourceController/uploadFile'}
                  downloadUrl={'/purchaseSourceController/downloadFile'}
                  fileFormDelName={'delFile'}
                  maxFile={1}
                  delFunc={(delFilePath: string) => {
                    handleDelFileFn(delFilePath, fileName);
                  }}
                  uploadSuccessCallback={(attachPaths) => {
                    handleAddFileFn(attachPaths, fileName);
                  }}
                  defaultFiles={text}
                  hintTitle={'且只能上传 1 个！'}
                  fieldBusiPath={'purchase/source'}
                  isShowUploadBtn={true}
                >
                  上传
                </UploadFormCommon>
              ) : (
                <div
                  style={{
                    height: '100%',
                    display: 'flex',
                    alignItems: 'center',
                    marginLeft: '8px',
                  }}
                >
                  {radioState?.[fileName]
                    ? splitFileUrl(radioState?.[fileName])?.map((e) => {
                        return (
                          <Tooltip title={e.attachName} key={new Date().getTime() * 25615265152 + e?.attachName}>
                            <a
                              onClick={() => {
                                message.success('下载中，请稍后...');
                                downloadTemplate('/purchaseSourceController/downloadFile', e?.attachName, e?.attachUrl, () => {});
                              }}
                            >
                              <MyIcon type="icon-file-text-fill" />
                              &nbsp;
                              {getFileNameNotType(e.attachName, 8)}
                            </a>
                          </Tooltip>
                        );
                      })
                    : '--'}
                </div>
              )}
            </>
          );
        },
      },
    ];
  } else {
    return [];
  }
};
